@boneskull/bargs 1.0.0 → 3.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/README.md +305 -299
- package/dist/bargs.cjs +464 -142
- package/dist/bargs.cjs.map +1 -1
- package/dist/bargs.d.cts +35 -17
- package/dist/bargs.d.cts.map +1 -1
- package/dist/bargs.d.ts +35 -17
- package/dist/bargs.d.ts.map +1 -1
- package/dist/bargs.js +462 -142
- package/dist/bargs.js.map +1 -1
- package/dist/help.cjs +1 -2
- package/dist/help.cjs.map +1 -1
- package/dist/help.d.cts +20 -3
- package/dist/help.d.cts.map +1 -1
- package/dist/help.d.ts +20 -3
- package/dist/help.d.ts.map +1 -1
- package/dist/help.js +1 -2
- package/dist/help.js.map +1 -1
- package/dist/index.cjs +27 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -78
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +15 -78
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -30
- package/dist/index.js.map +1 -1
- package/dist/opt.cjs +147 -80
- package/dist/opt.cjs.map +1 -1
- package/dist/opt.d.cts +88 -77
- package/dist/opt.d.cts.map +1 -1
- package/dist/opt.d.ts +88 -77
- package/dist/opt.d.ts.map +1 -1
- package/dist/opt.js +146 -79
- package/dist/opt.js.map +1 -1
- package/dist/parser.cjs +3 -230
- package/dist/parser.cjs.map +1 -1
- package/dist/parser.d.cts +3 -51
- package/dist/parser.d.cts.map +1 -1
- package/dist/parser.d.ts +3 -51
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +2 -223
- package/dist/parser.js.map +1 -1
- package/dist/types.cjs +1 -3
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +110 -122
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.ts +110 -122
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -3
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
- package/dist/validate.cjs +0 -463
- package/dist/validate.cjs.map +0 -1
- package/dist/validate.d.cts +0 -28
- package/dist/validate.d.cts.map +0 -1
- package/dist/validate.d.ts +0 -28
- package/dist/validate.d.ts.map +0 -1
- package/dist/validate.js +0 -459
- package/dist/validate.js.map +0 -1
package/dist/types.d.cts
CHANGED
|
@@ -6,25 +6,12 @@
|
|
|
6
6
|
* - Option definitions (`StringOption`, `BooleanOption`, `EnumOption`, etc.)
|
|
7
7
|
* - Positional definitions (`StringPositional`, `VariadicPositional`, etc.)
|
|
8
8
|
* - Schema types (`OptionsSchema`, `PositionalsSchema`)
|
|
9
|
-
* - Configuration types (`BargsConfig`, `BargsConfigWithCommands`)
|
|
10
|
-
* - Command types (`CommandConfig`, `CommandConfigInput`)
|
|
11
9
|
* - Type inference utilities (`InferOptions`, `InferPositionals`)
|
|
12
|
-
* -
|
|
10
|
+
* - Parser combinator types (`Parser`, `Command`, `ParseResult`)
|
|
13
11
|
*
|
|
14
12
|
* @packageDocumentation
|
|
15
13
|
*/
|
|
16
14
|
import type { ThemeInput } from "./theme.cjs";
|
|
17
|
-
/**
|
|
18
|
-
* Any command config (type-erased for collections). Uses a permissive handler
|
|
19
|
-
* type to avoid variance issues.
|
|
20
|
-
*/
|
|
21
|
-
export interface AnyCommandConfig {
|
|
22
|
-
description: string;
|
|
23
|
-
handler: (result: any) => Promise<void> | void;
|
|
24
|
-
options?: OptionsSchema;
|
|
25
|
-
positionals?: PositionalsSchema;
|
|
26
|
-
transforms?: TransformsConfig<any, any, any, any>;
|
|
27
|
-
}
|
|
28
15
|
/**
|
|
29
16
|
* Array option definition (--flag value --flag value2).
|
|
30
17
|
*/
|
|
@@ -35,107 +22,95 @@ export interface ArrayOption extends OptionBase {
|
|
|
35
22
|
type: 'array';
|
|
36
23
|
}
|
|
37
24
|
/**
|
|
38
|
-
*
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
description?: string;
|
|
25
|
+
* Boolean option definition.
|
|
26
|
+
*/
|
|
27
|
+
export interface BooleanOption extends OptionBase {
|
|
28
|
+
default?: boolean;
|
|
29
|
+
type: 'boolean';
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* CLI builder for fluent configuration.
|
|
33
|
+
*/
|
|
34
|
+
export interface CliBuilder<TGlobalValues = Record<string, never>, TGlobalPositionals extends readonly unknown[] = readonly []> {
|
|
49
35
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
36
|
+
* Register a command with a Command object.
|
|
37
|
+
*
|
|
38
|
+
* Note: When using this form, the handler only sees command-local types. Use
|
|
39
|
+
* the (parser, handler) form for merged global+command types.
|
|
53
40
|
*/
|
|
54
|
-
|
|
41
|
+
command<CV, CP extends readonly unknown[]>(name: string, cmd: Command<CV, CP>, description?: string): CliBuilder<TGlobalValues, TGlobalPositionals>;
|
|
55
42
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
43
|
+
* Register a command with a Parser and handler separately.
|
|
44
|
+
*
|
|
45
|
+
* This form provides full type inference for merged global + command types.
|
|
46
|
+
* The handler receives `TGlobalValues & CV` for values.
|
|
59
47
|
*/
|
|
60
|
-
|
|
61
|
-
name: string;
|
|
62
|
-
options?: TOptions;
|
|
63
|
-
positionals?: TPositionals;
|
|
48
|
+
command<CV, CP extends readonly unknown[]>(name: string, parser: Parser<CV, CP>, handler: HandlerFn<CV & TGlobalValues, CP>, description?: string): CliBuilder<TGlobalValues, TGlobalPositionals>;
|
|
64
49
|
/**
|
|
65
|
-
*
|
|
66
|
-
* Values transform receives InferOptions<TOptions>, positionals transform
|
|
67
|
-
* receives InferPositionals<TPositionals>.
|
|
50
|
+
* Set the default command by name (must be registered first).
|
|
68
51
|
*/
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
52
|
+
defaultCommand(name: string): CliBuilder<TGlobalValues, TGlobalPositionals>;
|
|
53
|
+
/**
|
|
54
|
+
* Set the default command with a Command object.
|
|
55
|
+
*
|
|
56
|
+
* Note: When using this form, the handler only sees command-local types. Use
|
|
57
|
+
* the (parser, handler) form for merged global+command types.
|
|
58
|
+
*/
|
|
59
|
+
defaultCommand<CV, CP extends readonly unknown[]>(cmd: Command<CV, CP>): CliBuilder<TGlobalValues, TGlobalPositionals>;
|
|
60
|
+
/**
|
|
61
|
+
* Set the default command with a Parser and handler separately.
|
|
62
|
+
*
|
|
63
|
+
* This form provides full type inference for merged global + command types.
|
|
64
|
+
* The handler receives `TGlobalValues & CV` for values.
|
|
65
|
+
*/
|
|
66
|
+
defaultCommand<CV, CP extends readonly unknown[]>(parser: Parser<CV, CP>, handler: HandlerFn<CV & TGlobalValues, CP>): CliBuilder<TGlobalValues, TGlobalPositionals>;
|
|
67
|
+
/**
|
|
68
|
+
* Set global options/transforms that apply to all commands.
|
|
69
|
+
*/
|
|
70
|
+
globals<V, P extends readonly unknown[]>(parser: Parser<V, P>): CliBuilder<V, P>;
|
|
71
|
+
/**
|
|
72
|
+
* Parse arguments synchronously and run handlers.
|
|
73
|
+
*
|
|
74
|
+
* Throws if any transform or handler returns a Promise.
|
|
75
|
+
*/
|
|
76
|
+
parse(args?: string[]): ParseResult<TGlobalValues, TGlobalPositionals> & {
|
|
77
|
+
command?: string;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Parse arguments asynchronously and run handlers.
|
|
81
|
+
*
|
|
82
|
+
* Supports async transforms and handlers.
|
|
83
|
+
*/
|
|
84
|
+
parseAsync(args?: string[]): Promise<ParseResult<TGlobalValues, TGlobalPositionals> & {
|
|
85
|
+
command?: string;
|
|
86
|
+
}>;
|
|
93
87
|
}
|
|
94
88
|
/**
|
|
95
|
-
* Result from
|
|
89
|
+
* Result from CLI execution (extends ParseResult with command name).
|
|
96
90
|
*/
|
|
97
|
-
export interface
|
|
98
|
-
command
|
|
99
|
-
|
|
100
|
-
values: TValues;
|
|
91
|
+
export interface CliResult<TValues = Record<string, unknown>, TPositionals extends readonly unknown[] = readonly unknown[]> extends ParseResult<TValues, TPositionals> {
|
|
92
|
+
/** The command that was executed, if any */
|
|
93
|
+
command?: string;
|
|
101
94
|
}
|
|
102
95
|
/**
|
|
103
|
-
*
|
|
96
|
+
* Command with handler attached (terminal in the pipeline).
|
|
104
97
|
*/
|
|
105
|
-
export interface
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
* Command configuration.
|
|
111
|
-
*
|
|
112
|
-
* The handler receives typed local options plus access to global options (as
|
|
113
|
-
* Record<string, unknown>). Global options are available at runtime but require
|
|
114
|
-
* type narrowing to access safely.
|
|
115
|
-
*
|
|
116
|
-
* @typeParam TOptions - Command-specific options schema
|
|
117
|
-
* @typeParam TPositionals - Command positionals schema
|
|
118
|
-
* @typeParam TTransforms - Command-level transforms config
|
|
119
|
-
*/
|
|
120
|
-
export interface CommandConfig<TOptions extends OptionsSchema = OptionsSchema, TPositionals extends PositionalsSchema = PositionalsSchema, TTransforms extends TransformsConfig<any, any, any, any> | undefined = undefined> {
|
|
121
|
-
description: string;
|
|
122
|
-
handler: Handler<BargsResult<InferTransformedValues<InferOptions<TOptions> & Record<string, unknown>, TTransforms>, InferTransformedPositionals<InferPositionals<TPositionals>, TTransforms>, string>>;
|
|
123
|
-
options?: TOptions;
|
|
124
|
-
positionals?: TPositionals;
|
|
125
|
-
/** Command-level transforms run after top-level transforms */
|
|
126
|
-
transforms?: TTransforms;
|
|
98
|
+
export interface Command<TValues = Record<string, unknown>, TPositionals extends readonly unknown[] = readonly unknown[]> {
|
|
99
|
+
/** Command description for help text */
|
|
100
|
+
readonly description?: string;
|
|
101
|
+
/** The handler function */
|
|
102
|
+
readonly handler: HandlerFn<TValues, TPositionals>;
|
|
127
103
|
}
|
|
128
104
|
/**
|
|
129
|
-
*
|
|
130
|
-
* intentionally loose here - it accepts any result type, allowing commands
|
|
131
|
-
* defined with opt.command() or inline to work.
|
|
105
|
+
* Registered command definition.
|
|
132
106
|
*/
|
|
133
|
-
export interface
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
107
|
+
export interface CommandDef<TValues = Record<string, unknown>, TPositionals extends readonly unknown[] = readonly unknown[]> {
|
|
108
|
+
/** The command */
|
|
109
|
+
readonly command: Command<TValues, TPositionals>;
|
|
110
|
+
/** Description for help */
|
|
111
|
+
readonly description?: string;
|
|
112
|
+
/** Command name */
|
|
113
|
+
readonly name: string;
|
|
139
114
|
}
|
|
140
115
|
/**
|
|
141
116
|
* Count option definition (--verbose --verbose = 2).
|
|
@@ -144,6 +119,19 @@ export interface CountOption extends OptionBase {
|
|
|
144
119
|
default?: number;
|
|
145
120
|
type: 'count';
|
|
146
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Options for bargs.create().
|
|
124
|
+
*/
|
|
125
|
+
export interface CreateOptions {
|
|
126
|
+
/** Description shown in help */
|
|
127
|
+
description?: string;
|
|
128
|
+
/** Epilog text shown after help output */
|
|
129
|
+
epilog?: false | string;
|
|
130
|
+
/** Color theme for help output */
|
|
131
|
+
theme?: ThemeInput;
|
|
132
|
+
/** Version string (enables --version flag) */
|
|
133
|
+
version?: string;
|
|
134
|
+
}
|
|
147
135
|
/**
|
|
148
136
|
* Enum option definition with string choices.
|
|
149
137
|
*/
|
|
@@ -161,14 +149,9 @@ export interface EnumPositional<T extends string = string> extends PositionalBas
|
|
|
161
149
|
type: 'enum';
|
|
162
150
|
}
|
|
163
151
|
/**
|
|
164
|
-
* Handler function signature.
|
|
165
|
-
* transforms for middleware-like sequential processing instead.
|
|
166
|
-
*/
|
|
167
|
-
export type Handler<TResult> = HandlerFn<TResult>;
|
|
168
|
-
/**
|
|
169
|
-
* Single handler function signature.
|
|
152
|
+
* Handler function signature.
|
|
170
153
|
*/
|
|
171
|
-
export type HandlerFn<
|
|
154
|
+
export type HandlerFn<TValues, TPositionals extends readonly unknown[]> = (result: ParseResult<TValues, TPositionals>) => Promise<void> | void;
|
|
172
155
|
/**
|
|
173
156
|
* Infer the TypeScript type from an option definition.
|
|
174
157
|
*/
|
|
@@ -184,24 +167,20 @@ export type InferOptions<T extends OptionsSchema> = {
|
|
|
184
167
|
*/
|
|
185
168
|
export type InferPositional<T extends PositionalDef> = T extends NumberPositional ? T['required'] extends true ? number : T['default'] extends number ? number : number | undefined : T extends StringPositional ? T['required'] extends true ? string : T['default'] extends string ? string : string | undefined : T extends EnumPositional<infer E> ? T['required'] extends true ? E : T['default'] extends E ? E : E | undefined : T extends VariadicPositional ? T['items'] extends 'number' ? number[] : string[] : never;
|
|
186
169
|
/**
|
|
187
|
-
* Recursively build a tuple type from a positionals schema array.
|
|
188
|
-
* tuple structure (order and length) rather than producing a mapped object
|
|
189
|
-
* type.
|
|
170
|
+
* Recursively build a tuple type from a positionals schema array.
|
|
190
171
|
*/
|
|
191
172
|
export type InferPositionals<T extends PositionalsSchema> = T extends readonly [
|
|
192
173
|
infer First,
|
|
193
174
|
...infer Rest
|
|
194
|
-
] ? First extends PositionalDef ? Rest extends PositionalsSchema ? readonly [InferPositional<First>, ...InferPositionals<Rest>] : readonly [InferPositional<First>] : readonly [] : T extends readonly [infer Only] ? Only extends PositionalDef ? readonly [InferPositional<Only>] : readonly [] : readonly [];
|
|
175
|
+
] ? First extends PositionalDef ? Rest extends PositionalsSchema ? readonly [InferPositional<First>, ...InferPositionals<Rest>] : readonly [InferPositional<First>] : readonly [] : T extends readonly [infer Only] ? Only extends PositionalDef ? readonly [InferPositional<Only>] : readonly [] : T extends readonly [] ? readonly [] : readonly InferPositional<T[number]>[];
|
|
195
176
|
/**
|
|
196
|
-
* Infer the output positionals type from a transforms config.
|
|
197
|
-
* transform, output equals input.
|
|
177
|
+
* Infer the output positionals type from a transforms config.
|
|
198
178
|
*/
|
|
199
179
|
export type InferTransformedPositionals<TPositionalsIn extends readonly unknown[], TTransforms> = TTransforms extends {
|
|
200
180
|
positionals: PositionalsTransformFn<any, infer TOut>;
|
|
201
181
|
} ? TOut extends readonly unknown[] ? TOut : TPositionalsIn : TPositionalsIn;
|
|
202
182
|
/**
|
|
203
|
-
* Infer the output values type from a transforms config.
|
|
204
|
-
* transform, output equals input.
|
|
183
|
+
* Infer the output values type from a transforms config.
|
|
205
184
|
*/
|
|
206
185
|
export type InferTransformedValues<TValuesIn, TTransforms> = TTransforms extends {
|
|
207
186
|
values: ValuesTransformFn<any, infer TOut>;
|
|
@@ -228,6 +207,19 @@ export type OptionDef = ArrayOption | BooleanOption | CountOption | EnumOption<s
|
|
|
228
207
|
* Options schema: a record of option names to their definitions.
|
|
229
208
|
*/
|
|
230
209
|
export type OptionsSchema = Record<string, OptionDef>;
|
|
210
|
+
/**
|
|
211
|
+
* Parser represents accumulated parse state with options and positionals
|
|
212
|
+
* schemas. This is a branded type for type-level tracking.
|
|
213
|
+
*/
|
|
214
|
+
export interface Parser<TValues = Record<string, unknown>, TPositionals extends readonly unknown[] = readonly unknown[]> {
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Core parse result shape flowing through the pipeline.
|
|
218
|
+
*/
|
|
219
|
+
export interface ParseResult<TValues = Record<string, unknown>, TPositionals extends readonly unknown[] = readonly unknown[]> {
|
|
220
|
+
positionals: TPositionals;
|
|
221
|
+
values: TValues;
|
|
222
|
+
}
|
|
231
223
|
/**
|
|
232
224
|
* Union of positional definitions.
|
|
233
225
|
*/
|
|
@@ -237,9 +229,7 @@ export type PositionalDef = EnumPositional<string> | NumberPositional | StringPo
|
|
|
237
229
|
*/
|
|
238
230
|
export type PositionalsSchema = readonly PositionalDef[];
|
|
239
231
|
/**
|
|
240
|
-
* Positionals transform function.
|
|
241
|
-
* transformed positionals tuple. The return type becomes the new positionals
|
|
242
|
-
* type for the handler.
|
|
232
|
+
* Positionals transform function.
|
|
243
233
|
*/
|
|
244
234
|
export type PositionalsTransformFn<TIn extends readonly unknown[], TOut extends readonly unknown[]> = (positionals: TIn) => Promise<TOut> | TOut;
|
|
245
235
|
/**
|
|
@@ -257,8 +247,7 @@ export interface StringPositional extends PositionalBase {
|
|
|
257
247
|
type: 'string';
|
|
258
248
|
}
|
|
259
249
|
/**
|
|
260
|
-
* Transforms configuration for modifying parsed results
|
|
261
|
-
* execution. Each transform is optional and can be sync or async.
|
|
250
|
+
* Transforms configuration for modifying parsed results.
|
|
262
251
|
*/
|
|
263
252
|
export interface TransformsConfig<TValuesIn, TValuesOut, TPositionalsIn extends readonly unknown[], TPositionalsOut extends readonly unknown[]> {
|
|
264
253
|
/** Transform parsed positionals tuple */
|
|
@@ -267,8 +256,7 @@ export interface TransformsConfig<TValuesIn, TValuesOut, TPositionalsIn extends
|
|
|
267
256
|
values?: ValuesTransformFn<TValuesIn, TValuesOut>;
|
|
268
257
|
}
|
|
269
258
|
/**
|
|
270
|
-
* Values transform function.
|
|
271
|
-
* values. The return type becomes the new values type for the handler.
|
|
259
|
+
* Values transform function.
|
|
272
260
|
*/
|
|
273
261
|
export type ValuesTransformFn<TIn, TOut> = (values: TIn) => Promise<TOut> | TOut;
|
|
274
262
|
/**
|
package/dist/types.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAmB;AAM7C;;GAEG;AACH,MAAM,WAAW,WAA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