@gunshi/plugin 0.37.0 → 0.37.2
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/lib/index.d.ts +9 -9
- package/lib/index.js +2 -2
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.28.
|
|
1
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.28.2/node_modules/args-tokens/lib/parser-DT7Ztcch.d.ts
|
|
2
2
|
//#region src/parser.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Entry point of argument parser.
|
|
@@ -55,7 +55,7 @@ interface ArgToken {
|
|
|
55
55
|
* Parser Options.
|
|
56
56
|
*/
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.28.
|
|
58
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.28.2/node_modules/args-tokens/lib/resolver.d.ts
|
|
59
59
|
//#region src/resolver.d.ts
|
|
60
60
|
/**
|
|
61
61
|
* An argument schema definition for command-line argument parsing.
|
|
@@ -515,12 +515,12 @@ interface ArgSchema {
|
|
|
515
515
|
* i18n resource key for localized rendering.
|
|
516
516
|
*/
|
|
517
517
|
declare const ArgsValidationErrorKeys: {
|
|
518
|
-
readonly requiredOption:
|
|
519
|
-
readonly requiredPositional:
|
|
520
|
-
readonly invalidType:
|
|
521
|
-
readonly invalidChoice:
|
|
522
|
-
readonly customParse:
|
|
523
|
-
readonly unknownOption:
|
|
518
|
+
readonly requiredOption: 'err:arg:required-option';
|
|
519
|
+
readonly requiredPositional: 'err:arg:required-positional';
|
|
520
|
+
readonly invalidType: 'err:arg:invalid-type';
|
|
521
|
+
readonly invalidChoice: 'err:arg:invalid-choice';
|
|
522
|
+
readonly customParse: 'err:arg:custom-parse';
|
|
523
|
+
readonly unknownOption: 'err:arg:unknown-option';
|
|
524
524
|
};
|
|
525
525
|
/**
|
|
526
526
|
* A machine-readable argument validation error code.
|
|
@@ -599,7 +599,7 @@ type ResolveOptionValue<A extends ArgSchema, T> = A['multiple'] extends true ? T
|
|
|
599
599
|
*
|
|
600
600
|
* @internal
|
|
601
601
|
*/
|
|
602
|
-
type ResolveArgValues<A extends Args, V extends Record<keyof A, unknown>> = { -readonly [Arg in keyof A]?: V[Arg] } & FilterArgs<A, V, 'default'> & FilterArgs<A, V, 'required'> & FilterPositionalArgs<A, V> extends infer P ? { [K in keyof P]: P[K] } : never;
|
|
602
|
+
type ResolveArgValues<A extends Args, V extends Record<keyof A, unknown>> = { -readonly [Arg in keyof A]?: V[Arg] } & FilterArgs<A, V, 'default'> & FilterArgs<A, V, 'required'> & FilterPositionalArgs<A, V> extends (infer P) ? { [K in keyof P]: P[K] } : never;
|
|
603
603
|
/**
|
|
604
604
|
* Filters the arguments based on their default values.
|
|
605
605
|
*
|
package/lib/index.js
CHANGED
|
@@ -173,7 +173,7 @@ function getCommandName(cmd) {
|
|
|
173
173
|
"-".codePointAt(0);
|
|
174
174
|
"=".codePointAt(0);
|
|
175
175
|
//#endregion
|
|
176
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.28.
|
|
176
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.28.2/node_modules/args-tokens/lib/resolver.js
|
|
177
177
|
/**
|
|
178
178
|
* Entry point of argument options resolver.
|
|
179
179
|
*
|
|
@@ -238,7 +238,7 @@ function isArgsValidationError(error) {
|
|
|
238
238
|
return error instanceof ArgsValidationError;
|
|
239
239
|
}
|
|
240
240
|
//#endregion
|
|
241
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.28.
|
|
241
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.28.2/node_modules/args-tokens/lib/index.js
|
|
242
242
|
/**
|
|
243
243
|
* @author kazuya kawaguchi (a.k.a. kazupon)
|
|
244
244
|
* @license MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gunshi/plugin",
|
|
3
3
|
"description": "plugin development kit for gunshi",
|
|
4
|
-
"version": "0.37.
|
|
4
|
+
"version": "0.37.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"jsr-exports-lint": "^0.4.2",
|
|
57
57
|
"publint": "^0.3.20",
|
|
58
58
|
"tsdown": "0.21.0",
|
|
59
|
-
"gunshi": "0.37.
|
|
59
|
+
"gunshi": "0.37.2"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsdown",
|