@gunshi/shared 1.0.0-beta.2 → 1.0.0-rc.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 +6 -4
- package/lib/index.js +1 -1
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/args-tokens@1.0.0
|
|
1
|
+
//#region ../../node_modules/.pnpm/args-tokens@1.0.0/node_modules/args-tokens/lib/parser-DhESN1gR.d.ts
|
|
2
2
|
//#region src/parser.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Entry point of argument parser.
|
|
@@ -56,7 +56,7 @@ interface ArgToken {
|
|
|
56
56
|
inlineValue?: boolean | undefined;
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
|
-
//#region ../../node_modules/.pnpm/args-tokens@1.0.0
|
|
59
|
+
//#region ../../node_modules/.pnpm/args-tokens@1.0.0/node_modules/args-tokens/lib/resolver.d.ts
|
|
60
60
|
//#region src/resolver.d.ts
|
|
61
61
|
/**
|
|
62
62
|
* An argument schema definition for command-line argument parsing.
|
|
@@ -1056,9 +1056,11 @@ interface RenderingOptions<G extends GunshiParamsConstraint = DefaultGunshiParam
|
|
|
1056
1056
|
usage?: ((ctx: Readonly<CommandContext<G>>) => Promise<string>) | null;
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Validation errors rendering configuration
|
|
1059
|
-
* - `null`: Disable rendering
|
|
1059
|
+
* - `null`: Disable rendering. `cli()` rejects with the validation errors, for the caller to report them
|
|
1060
1060
|
* - `function`: Use custom renderer
|
|
1061
1061
|
* - `undefined` (when omitted): Use default renderer
|
|
1062
|
+
*
|
|
1063
|
+
* See {@linkcode CliOptions.renderValidationErrors} for where the rendered message goes.
|
|
1062
1064
|
*/
|
|
1063
1065
|
validationErrors?: ((ctx: Readonly<CommandContext<G>>, error: AggregateError) => Promise<string>) | null;
|
|
1064
1066
|
}
|
|
@@ -1234,7 +1236,7 @@ type CommandExamplesFetcher<G extends GunshiParamsConstraint = DefaultGunshiPara
|
|
|
1234
1236
|
*/
|
|
1235
1237
|
type CommandRunner<G extends GunshiParamsConstraint = DefaultGunshiParams> = (ctx: Readonly<CommandContext<G>>) => Awaitable<string | void>;
|
|
1236
1238
|
//#endregion
|
|
1237
|
-
//#region ../../node_modules/.pnpm/args-tokens@1.0.0
|
|
1239
|
+
//#region ../../node_modules/.pnpm/args-tokens@1.0.0/node_modules/args-tokens/lib/utils.d.ts
|
|
1238
1240
|
//#region src/utils.d.ts
|
|
1239
1241
|
/**
|
|
1240
1242
|
* Entry point of utils.
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gunshi/shared",
|
|
3
3
|
"description": "shared utils for gunshi",
|
|
4
|
-
"version": "1.0.0-
|
|
4
|
+
"version": "1.0.0-rc.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@gunshi/resources": "1.0.0-
|
|
53
|
+
"@gunshi/resources": "1.0.0-rc.2",
|
|
54
54
|
"deno": "^2.7.14",
|
|
55
|
-
"gunshi": "1.0.0-
|
|
55
|
+
"gunshi": "1.0.0-rc.2",
|
|
56
56
|
"jsr": "^0.14.3",
|
|
57
57
|
"jsr-exports-lint": "^0.4.2",
|
|
58
58
|
"publint": "^0.3.20",
|