@bemoje/cli 1.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +27 -1
- package/index.mjs +1352 -0
- package/index.mjs.map +7 -0
- package/lib/Command.d.ts +97 -262
- package/lib/Help.d.ts +37 -83
- package/lib/helpers/findCommand.d.ts +6 -0
- package/lib/helpers/findOption.d.ts +5 -0
- package/lib/helpers/getCommandAncestors.d.ts +5 -0
- package/lib/helpers/getCommandAndAncestors.d.ts +5 -0
- package/lib/helpers/parseOptionFlags.d.ts +11 -0
- package/lib/internal/collectVariadicOptionValues.d.ts +7 -0
- package/lib/internal/mergeOptionDefaults.d.ts +3 -0
- package/lib/internal/normalizeArgv.d.ts +3 -0
- package/lib/internal/resolveArguments.d.ts +3 -0
- package/lib/internal/validateParsed.d.ts +3 -0
- package/lib/types.d.ts +383 -0
- package/package.json +35 -29
- package/LICENSE +0 -21
- package/README.md +0 -246
- package/index.js +0 -3
- package/lib/Command.js +0 -421
- package/lib/Help.js +0 -474
package/index.d.ts
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
1
|
export * from './lib/Command';
|
|
2
2
|
export * from './lib/Help';
|
|
3
|
-
|
|
3
|
+
export * from './lib/helpers/findCommand';
|
|
4
|
+
export * from './lib/helpers/findOption';
|
|
5
|
+
export * from './lib/helpers/getCommandAncestors';
|
|
6
|
+
export * from './lib/helpers/getCommandAndAncestors';
|
|
7
|
+
export * from './lib/helpers/parseOptionFlags';
|
|
8
|
+
export * from './lib/types';
|
|
9
|
+
import * as MODULE_1 from './lib/Command';
|
|
10
|
+
import * as MODULE_2 from './lib/Help';
|
|
11
|
+
import * as MODULE_8 from './lib/types';
|
|
12
|
+
declare const _default: {
|
|
13
|
+
parseOptionFlags<Long extends string>(flags: MODULE_8.OptionUsage<Long>): {
|
|
14
|
+
short: string;
|
|
15
|
+
long: Long;
|
|
16
|
+
name: import("type-fest").CamelCase<Long>;
|
|
17
|
+
argName: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
getCommandAndAncestors<C extends MODULE_8.ICommand>(cmd: C): [typeof cmd, ...MODULE_8.ICommand[]];
|
|
20
|
+
getCommandAncestors<C extends MODULE_8.ICommand>(cmd: C): C[];
|
|
21
|
+
findOption<C extends MODULE_8.ICommand>(cmd: C, nameOrShortOrLong: string): MODULE_8.Option | undefined;
|
|
22
|
+
findCommand<C extends MODULE_1.Command = MODULE_1.Command<[], {
|
|
23
|
+
help?: boolean;
|
|
24
|
+
debug?: boolean;
|
|
25
|
+
}, MODULE_8.SubCommands>>(cmd: MODULE_8.ICommand, nameOrAlias: string): C | undefined;
|
|
26
|
+
Help: typeof MODULE_2.Help;
|
|
27
|
+
Command: typeof MODULE_1.Command;
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|