@gunshi/plugin-i18n 0.28.0 → 0.29.1
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 +24 -2
- package/package.json +9 -9
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Args, Awaitable, Command, CommandContext, DefaultGunshiParams, ExtendContext, ExtractArgs, ExtractExtensions, GunshiParams, GunshiParamsConstraint, PluginWithExtension, Prettify } from "@gunshi/plugin";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.
|
|
3
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.24.1/node_modules/args-tokens/lib/resolver.d.ts
|
|
4
4
|
|
|
5
5
|
//#region src/resolver.d.ts
|
|
6
6
|
/**
|
|
@@ -136,7 +136,7 @@ interface ArgSchema {
|
|
|
136
136
|
* }
|
|
137
137
|
* ```
|
|
138
138
|
*/
|
|
139
|
-
required?:
|
|
139
|
+
required?: boolean;
|
|
140
140
|
/**
|
|
141
141
|
* Allows the argument to accept multiple values.
|
|
142
142
|
*
|
|
@@ -363,6 +363,28 @@ interface ArgSchema {
|
|
|
363
363
|
* ```
|
|
364
364
|
*/
|
|
365
365
|
conflicts?: string | string[];
|
|
366
|
+
/**
|
|
367
|
+
* Display name hint for help text generation.
|
|
368
|
+
*
|
|
369
|
+
* Provides a meaningful type hint for the argument value in help output.
|
|
370
|
+
* Particularly useful for `type: 'custom'` arguments where the type
|
|
371
|
+
* name would otherwise be unhelpful.
|
|
372
|
+
*
|
|
373
|
+
* @example
|
|
374
|
+
* Metavar usage:
|
|
375
|
+
* ```ts
|
|
376
|
+
* {
|
|
377
|
+
* port: {
|
|
378
|
+
* type: 'custom',
|
|
379
|
+
* parse: (v: string) => parseInt(v, 10),
|
|
380
|
+
* metavar: 'integer',
|
|
381
|
+
* description: 'Port number (1-65535)'
|
|
382
|
+
* }
|
|
383
|
+
* }
|
|
384
|
+
* // Help output: --port <integer> Port number (1-65535)
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
metavar?: string;
|
|
366
388
|
/**
|
|
367
389
|
* Custom parsing function for `type: 'custom'` arguments.
|
|
368
390
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gunshi/plugin-i18n",
|
|
3
3
|
"description": "internationalization plugin for gunshi",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.29.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@gunshi/plugin": "0.
|
|
56
|
+
"@gunshi/plugin": "0.29.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@gunshi/plugin-global": "0.
|
|
59
|
+
"@gunshi/plugin-global": "0.29.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
62
62
|
"@gunshi/plugin-global": {
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"tsdown": "0.15.12",
|
|
74
74
|
"typedoc": "^0.28.15",
|
|
75
75
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
76
|
-
"@gunshi/
|
|
77
|
-
"@gunshi/
|
|
78
|
-
"@gunshi/resources": "0.
|
|
79
|
-
"@gunshi/plugin-
|
|
80
|
-
"@gunshi/shared": "0.
|
|
81
|
-
"gunshi": "0.
|
|
76
|
+
"@gunshi/plugin-global": "0.29.1",
|
|
77
|
+
"@gunshi/bone": "0.29.1",
|
|
78
|
+
"@gunshi/resources": "0.29.1",
|
|
79
|
+
"@gunshi/plugin-renderer": "0.29.1",
|
|
80
|
+
"@gunshi/shared": "0.29.1",
|
|
81
|
+
"gunshi": "0.29.1"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
84
|
"build": "tsdown",
|