gunshi 0.29.2 → 0.29.3
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/bone.d.ts +2 -2
- package/lib/bone.js +1 -1
- package/lib/{cli-C1Yws72G.js → cli-Dq9-F-ZP.js} +2 -2
- package/lib/combinators.d.ts +2 -2
- package/lib/combinators.js +19 -1
- package/lib/{constants-Ddb0iqST.d.ts → constants-QPaYzi6d.d.ts} +1 -1
- package/lib/{context-Ctl36pNI.js → context-BSv3I5Ip.js} +1 -1
- package/lib/context.d.ts +2 -2
- package/lib/context.js +1 -1
- package/lib/{core-CoMdwsPo.js → core-BabkHGNU.js} +5 -5
- package/lib/definition.d.ts +2 -2
- package/lib/definition.js +1 -1
- package/lib/generator.d.ts +1 -1
- package/lib/generator.js +4 -4
- package/lib/index.d.ts +3 -3
- package/lib/index.js +4 -4
- package/lib/plugin.d.ts +3 -3
- package/lib/plugin.js +1 -1
- package/lib/renderer.d.ts +1 -1
- package/lib/renderer.js +1 -1
- package/lib/{resolver-BfQ_CoYR.d.ts → resolver-D4JorBDf.d.ts} +2 -2
- package/lib/{src-h66U0DWW.js → src-CLiit_Bx.js} +1 -1
- package/lib/{types-BBvkSkl2.d.ts → types-CcuJzRjy.d.ts} +1 -1
- package/lib/{utils-B6TBrE2m.js → utils-DZGPApAe.js} +1 -1
- package/lib/utils.d.ts +2 -2
- package/lib/utils.js +1 -1
- package/package.json +11 -11
package/lib/bone.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as Args, n as ArgSchema, o as ArgToken, r as ArgValues } from "./resolver-
|
|
2
|
-
import { C as Prettify, D as ValidationErrorsDecorator, E as SubCommandable, S as NormalizeToGunshiParams, T as RenderingOptions, _ as ExtractArgs, a as CommandContext, b as GunshiParamsConstraint, c as CommandDecorator, d as CommandLoader, f as CommandRunner, g as ExtractArgExplicitlyProvided, h as ExtendContext, i as CommandCallMode, l as CommandEnvironment, m as DefaultGunshiParams, n as CliOptions, o as CommandContextCore, p as Commandable, r as Command, s as CommandContextExtension, t as Awaitable, u as CommandExamplesFetcher, v as ExtractExtensions, w as RendererDecorator, x as LazyCommand, y as GunshiParams } from "./types-
|
|
1
|
+
import { i as Args, n as ArgSchema, o as ArgToken, r as ArgValues } from "./resolver-D4JorBDf.js";
|
|
2
|
+
import { C as Prettify, D as ValidationErrorsDecorator, E as SubCommandable, S as NormalizeToGunshiParams, T as RenderingOptions, _ as ExtractArgs, a as CommandContext, b as GunshiParamsConstraint, c as CommandDecorator, d as CommandLoader, f as CommandRunner, g as ExtractArgExplicitlyProvided, h as ExtendContext, i as CommandCallMode, l as CommandEnvironment, m as DefaultGunshiParams, n as CliOptions, o as CommandContextCore, p as Commandable, r as Command, s as CommandContextExtension, t as Awaitable, u as CommandExamplesFetcher, v as ExtractExtensions, w as RendererDecorator, x as LazyCommand, y as GunshiParams } from "./types-CcuJzRjy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/bone.d.ts
|
|
5
5
|
/**
|
package/lib/bone.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cliCore } from "./core-
|
|
1
|
+
import { t as cliCore } from "./core-BabkHGNU.js";
|
|
2
2
|
import { t as plugin } from "./core-eN5xmB3s.js";
|
|
3
|
-
import { a as namespacedId, s as COMMON_ARGS, t as renderer } from "./src-
|
|
3
|
+
import { a as namespacedId, s as COMMON_ARGS, t as renderer } from "./src-CLiit_Bx.js";
|
|
4
4
|
|
|
5
5
|
//#region ../plugin-global/src/types.ts
|
|
6
6
|
/**
|
package/lib/combinators.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as Args, n as ArgSchema } from "./resolver-
|
|
1
|
+
import { i as Args, n as ArgSchema } from "./resolver-D4JorBDf.js";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.24.
|
|
3
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.24.3/node_modules/args-tokens/lib/combinators.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* @author kazuya kawaguchi (a.k.a. kazupon)
|
|
6
6
|
* @license MIT
|
package/lib/combinators.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.24.
|
|
1
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.24.3/node_modules/args-tokens/lib/combinators.js
|
|
2
2
|
/**
|
|
3
3
|
* Create a string argument schema with optional validation.
|
|
4
4
|
*
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @experimental
|
|
16
16
|
*/
|
|
17
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
17
18
|
function string(opts) {
|
|
18
19
|
return {
|
|
19
20
|
type: "string",
|
|
@@ -46,6 +47,7 @@ function string(opts) {
|
|
|
46
47
|
*
|
|
47
48
|
* @experimental
|
|
48
49
|
*/
|
|
50
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
49
51
|
function number(opts) {
|
|
50
52
|
return {
|
|
51
53
|
type: "number",
|
|
@@ -79,6 +81,7 @@ function number(opts) {
|
|
|
79
81
|
*
|
|
80
82
|
* @experimental
|
|
81
83
|
*/
|
|
84
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
82
85
|
function integer(opts) {
|
|
83
86
|
return {
|
|
84
87
|
type: "custom",
|
|
@@ -113,6 +116,7 @@ function integer(opts) {
|
|
|
113
116
|
*
|
|
114
117
|
* @experimental
|
|
115
118
|
*/
|
|
119
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
116
120
|
function float(opts) {
|
|
117
121
|
return {
|
|
118
122
|
type: "custom",
|
|
@@ -150,6 +154,7 @@ function float(opts) {
|
|
|
150
154
|
*
|
|
151
155
|
* @experimental
|
|
152
156
|
*/
|
|
157
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
153
158
|
function boolean(opts) {
|
|
154
159
|
return {
|
|
155
160
|
type: "boolean",
|
|
@@ -163,6 +168,7 @@ function boolean(opts) {
|
|
|
163
168
|
}
|
|
164
169
|
};
|
|
165
170
|
}
|
|
171
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
166
172
|
function positional(parser) {
|
|
167
173
|
if (parser && "parse" in parser) return {
|
|
168
174
|
type: "positional",
|
|
@@ -200,6 +206,7 @@ function positional(parser) {
|
|
|
200
206
|
*
|
|
201
207
|
* @experimental
|
|
202
208
|
*/
|
|
209
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
203
210
|
function choice(values, opts) {
|
|
204
211
|
return {
|
|
205
212
|
type: "enum",
|
|
@@ -244,6 +251,7 @@ function choice(values, opts) {
|
|
|
244
251
|
*
|
|
245
252
|
* @experimental
|
|
246
253
|
*/
|
|
254
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
247
255
|
function combinator(config) {
|
|
248
256
|
return {
|
|
249
257
|
type: "custom",
|
|
@@ -276,6 +284,7 @@ function combinator(config) {
|
|
|
276
284
|
*
|
|
277
285
|
* @experimental
|
|
278
286
|
*/
|
|
287
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
279
288
|
function map(schema, transform) {
|
|
280
289
|
const baseParse = schema.parse;
|
|
281
290
|
return {
|
|
@@ -305,6 +314,7 @@ function map(schema, transform) {
|
|
|
305
314
|
*
|
|
306
315
|
* @experimental
|
|
307
316
|
*/
|
|
317
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
308
318
|
function withDefault(schema, defaultValue) {
|
|
309
319
|
return {
|
|
310
320
|
...schema,
|
|
@@ -330,6 +340,7 @@ function withDefault(schema, defaultValue) {
|
|
|
330
340
|
*
|
|
331
341
|
* @experimental
|
|
332
342
|
*/
|
|
343
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
333
344
|
function multiple(schema) {
|
|
334
345
|
return {
|
|
335
346
|
...schema,
|
|
@@ -355,6 +366,7 @@ function multiple(schema) {
|
|
|
355
366
|
*
|
|
356
367
|
* @experimental
|
|
357
368
|
*/
|
|
369
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
358
370
|
function required(schema) {
|
|
359
371
|
return {
|
|
360
372
|
...schema,
|
|
@@ -383,6 +395,7 @@ function required(schema) {
|
|
|
383
395
|
*
|
|
384
396
|
* @experimental
|
|
385
397
|
*/
|
|
398
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
386
399
|
function short(schema, alias) {
|
|
387
400
|
return {
|
|
388
401
|
...schema,
|
|
@@ -410,6 +423,7 @@ function short(schema, alias) {
|
|
|
410
423
|
*
|
|
411
424
|
* @experimental
|
|
412
425
|
*/
|
|
426
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
413
427
|
function describe(schema, text) {
|
|
414
428
|
return {
|
|
415
429
|
...schema,
|
|
@@ -436,6 +450,7 @@ function describe(schema, text) {
|
|
|
436
450
|
*
|
|
437
451
|
* @experimental
|
|
438
452
|
*/
|
|
453
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
439
454
|
function unrequired(schema) {
|
|
440
455
|
return {
|
|
441
456
|
...schema,
|
|
@@ -463,9 +478,11 @@ function unrequired(schema) {
|
|
|
463
478
|
*
|
|
464
479
|
* @experimental
|
|
465
480
|
*/
|
|
481
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
466
482
|
function args(fields) {
|
|
467
483
|
return fields;
|
|
468
484
|
}
|
|
485
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
469
486
|
function merge(...schemas) {
|
|
470
487
|
const result = Object.create(null);
|
|
471
488
|
for (const schema of schemas) for (const key of Object.keys(schema)) result[key] = schema[key];
|
|
@@ -492,6 +509,7 @@ function merge(...schemas) {
|
|
|
492
509
|
*
|
|
493
510
|
* @experimental
|
|
494
511
|
*/
|
|
512
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
495
513
|
function extend(base, overrides) {
|
|
496
514
|
const result = Object.create(null);
|
|
497
515
|
for (const key of Object.keys(base)) result[key] = base[key];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as log, i as isLazyCommand, n as deepFreeze, t as create } from "./utils-
|
|
1
|
+
import { a as log, i as isLazyCommand, n as deepFreeze, t as create } from "./utils-DZGPApAe.js";
|
|
2
2
|
import { n as CLI_OPTIONS_DEFAULT, r as NOOP, t as ANONYMOUS_COMMAND_NAME } from "./constants-WviiKqbt.js";
|
|
3
3
|
|
|
4
4
|
//#region src/context.ts
|
package/lib/context.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as Args, o as ArgToken, r as ArgValues } from "./resolver-
|
|
2
|
-
import { _ as ExtractArgs, a as CommandContext, b as GunshiParamsConstraint, g as ExtractArgExplicitlyProvided, h as ExtendContext, i as CommandCallMode, m as DefaultGunshiParams, n as CliOptions, r as Command, s as CommandContextExtension, x as LazyCommand, y as GunshiParams } from "./types-
|
|
1
|
+
import { i as Args, o as ArgToken, r as ArgValues } from "./resolver-D4JorBDf.js";
|
|
2
|
+
import { _ as ExtractArgs, a as CommandContext, b as GunshiParamsConstraint, g as ExtractArgExplicitlyProvided, h as ExtendContext, i as CommandCallMode, m as DefaultGunshiParams, n as CliOptions, r as Command, s as CommandContextExtension, x as LazyCommand, y as GunshiParams } from "./types-CcuJzRjy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/context.d.ts
|
|
5
5
|
|
package/lib/context.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as isLazyCommand, o as resolveLazyCommand, r as getCommandSubCommands, s as kebabnize, t as create } from "./utils-
|
|
1
|
+
import { i as isLazyCommand, o as resolveLazyCommand, r as getCommandSubCommands, s as kebabnize, t as create } from "./utils-DZGPApAe.js";
|
|
2
2
|
import { n as CLI_OPTIONS_DEFAULT, r as NOOP, t as ANONYMOUS_COMMAND_NAME } from "./constants-WviiKqbt.js";
|
|
3
|
-
import { t as createCommandContext } from "./context-
|
|
3
|
+
import { t as createCommandContext } from "./context-BSv3I5Ip.js";
|
|
4
4
|
|
|
5
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.24.
|
|
5
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.24.3/node_modules/args-tokens/lib/parser.js
|
|
6
6
|
const HYPHEN_CHAR = "-";
|
|
7
7
|
const HYPHEN_CODE = HYPHEN_CHAR.codePointAt(0);
|
|
8
8
|
const EQUAL_CHAR = "=";
|
|
@@ -187,7 +187,7 @@ function isLongOptionAndValue(arg) {
|
|
|
187
187
|
* @returns Whether `arg` is a long option prefix.
|
|
188
188
|
*/
|
|
189
189
|
function hasLongOptionPrefix(arg) {
|
|
190
|
-
return arg.length > 2
|
|
190
|
+
return arg.startsWith(LONG_OPTION_PREFIX) && arg.length > 2;
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
193
|
* Check if a `value` is an option value.
|
|
@@ -200,7 +200,7 @@ function hasOptionValue(value) {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
//#endregion
|
|
203
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.24.
|
|
203
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.24.3/node_modules/args-tokens/lib/resolver.js
|
|
204
204
|
/**
|
|
205
205
|
* Entry point of argument options resolver.
|
|
206
206
|
*
|
package/lib/definition.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as Args, n as ArgSchema, r as ArgValues } from "./resolver-
|
|
2
|
-
import { C as Prettify, _ as ExtractArgs, b as GunshiParamsConstraint, d as CommandLoader, f as CommandRunner, h as ExtendContext, m as DefaultGunshiParams, r as Command, v as ExtractExtensions, x as LazyCommand, y as GunshiParams } from "./types-
|
|
1
|
+
import { i as Args, n as ArgSchema, r as ArgValues } from "./resolver-D4JorBDf.js";
|
|
2
|
+
import { C as Prettify, _ as ExtractArgs, b as GunshiParamsConstraint, d as CommandLoader, f as CommandRunner, h as ExtendContext, m as DefaultGunshiParams, r as Command, v as ExtractExtensions, x as LazyCommand, y as GunshiParams } from "./types-CcuJzRjy.js";
|
|
3
3
|
import { CommandContextParams, createCommandContext } from "./context.js";
|
|
4
4
|
|
|
5
5
|
//#region src/definition.d.ts
|
package/lib/definition.js
CHANGED
package/lib/generator.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as GunshiParamsConstraint, m as DefaultGunshiParams, n as CliOptions, r as Command, x as LazyCommand } from "./types-
|
|
1
|
+
import { b as GunshiParamsConstraint, m as DefaultGunshiParams, n as CliOptions, r as Command, x as LazyCommand } from "./types-CcuJzRjy.js";
|
|
2
2
|
|
|
3
3
|
//#region src/generator.d.ts
|
|
4
4
|
|
package/lib/generator.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./core-
|
|
2
|
-
import { t as create } from "./utils-
|
|
3
|
-
import "./src-
|
|
4
|
-
import { t as cli } from "./cli-
|
|
1
|
+
import "./core-BabkHGNU.js";
|
|
2
|
+
import { t as create } from "./utils-DZGPApAe.js";
|
|
3
|
+
import "./src-CLiit_Bx.js";
|
|
4
|
+
import { t as cli } from "./cli-Dq9-F-ZP.js";
|
|
5
5
|
|
|
6
6
|
//#region src/generator.ts
|
|
7
7
|
/**
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as resolveArgs, i as Args, n as ArgSchema, o as ArgToken, r as ArgValues, s as parseArgs } from "./resolver-
|
|
2
|
-
import { A as PluginDependency, C as Prettify, D as ValidationErrorsDecorator, E as SubCommandable, F as PluginWithoutExtension, I as plugin, L as PluginContext, M as PluginFunction, N as PluginOptions, O as OnPluginExtension, P as PluginWithExtension, S as NormalizeToGunshiParams, T as RenderingOptions, _ as ExtractArgs, a as CommandContext, b as GunshiParamsConstraint, c as CommandDecorator, d as CommandLoader, f as CommandRunner, g as ExtractArgExplicitlyProvided, h as ExtendContext, i as CommandCallMode, j as PluginExtension, k as Plugin, l as CommandEnvironment, m as DefaultGunshiParams, n as CliOptions, o as CommandContextCore, p as Commandable, r as Command, s as CommandContextExtension, t as Awaitable, u as CommandExamplesFetcher, v as ExtractExtensions, w as RendererDecorator, x as LazyCommand, y as GunshiParams } from "./types-
|
|
1
|
+
import { a as resolveArgs, i as Args, n as ArgSchema, o as ArgToken, r as ArgValues, s as parseArgs } from "./resolver-D4JorBDf.js";
|
|
2
|
+
import { A as PluginDependency, C as Prettify, D as ValidationErrorsDecorator, E as SubCommandable, F as PluginWithoutExtension, I as plugin, L as PluginContext, M as PluginFunction, N as PluginOptions, O as OnPluginExtension, P as PluginWithExtension, S as NormalizeToGunshiParams, T as RenderingOptions, _ as ExtractArgs, a as CommandContext, b as GunshiParamsConstraint, c as CommandDecorator, d as CommandLoader, f as CommandRunner, g as ExtractArgExplicitlyProvided, h as ExtendContext, i as CommandCallMode, j as PluginExtension, k as Plugin, l as CommandEnvironment, m as DefaultGunshiParams, n as CliOptions, o as CommandContextCore, p as Commandable, r as Command, s as CommandContextExtension, t as Awaitable, u as CommandExamplesFetcher, v as ExtractExtensions, w as RendererDecorator, x as LazyCommand, y as GunshiParams } from "./types-CcuJzRjy.js";
|
|
3
3
|
import { CommandContextParams, createCommandContext } from "./context.js";
|
|
4
4
|
import { define, defineWithTypes, lazy, lazyWithTypes } from "./definition.js";
|
|
5
|
-
import { t as ANONYMOUS_COMMAND_NAME } from "./constants-
|
|
5
|
+
import { t as ANONYMOUS_COMMAND_NAME } from "./constants-QPaYzi6d.js";
|
|
6
6
|
|
|
7
7
|
//#region ../plugin-i18n/src/types.d.ts
|
|
8
8
|
|
package/lib/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as resolveArgs, r as parseArgs } from "./core-
|
|
1
|
+
import { n as resolveArgs, r as parseArgs } from "./core-BabkHGNU.js";
|
|
2
2
|
import { t as ANONYMOUS_COMMAND_NAME } from "./constants-WviiKqbt.js";
|
|
3
|
-
import { t as createCommandContext } from "./context-
|
|
3
|
+
import { t as createCommandContext } from "./context-BSv3I5Ip.js";
|
|
4
4
|
import { define, defineWithTypes, lazy, lazyWithTypes } from "./definition.js";
|
|
5
5
|
import { t as plugin } from "./core-eN5xmB3s.js";
|
|
6
|
-
import { a as namespacedId, o as BUILT_IN_PREFIX } from "./src-
|
|
7
|
-
import { t as cli } from "./cli-
|
|
6
|
+
import { a as namespacedId, o as BUILT_IN_PREFIX } from "./src-CLiit_Bx.js";
|
|
7
|
+
import { t as cli } from "./cli-Dq9-F-ZP.js";
|
|
8
8
|
|
|
9
9
|
//#region ../plugin-i18n/src/translation.ts
|
|
10
10
|
/**
|
package/lib/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as Args, n as ArgSchema, o as ArgToken, r as ArgValues } from "./resolver-
|
|
2
|
-
import { A as PluginDependency, C as Prettify, D as ValidationErrorsDecorator, F as PluginWithoutExtension, I as plugin, L as PluginContext, M as PluginFunction, N as PluginOptions, O as OnPluginExtension, P as PluginWithExtension, S as NormalizeToGunshiParams, _ as ExtractArgs, a as CommandContext, b as GunshiParamsConstraint, c as CommandDecorator, f as CommandRunner, h as ExtendContext, j as PluginExtension, k as Plugin, m as DefaultGunshiParams, o as CommandContextCore, r as Command, s as CommandContextExtension, t as Awaitable, u as CommandExamplesFetcher, v as ExtractExtensions, w as RendererDecorator, x as LazyCommand, y as GunshiParams } from "./types-
|
|
1
|
+
import { i as Args, n as ArgSchema, o as ArgToken, r as ArgValues } from "./resolver-D4JorBDf.js";
|
|
2
|
+
import { A as PluginDependency, C as Prettify, D as ValidationErrorsDecorator, F as PluginWithoutExtension, I as plugin, L as PluginContext, M as PluginFunction, N as PluginOptions, O as OnPluginExtension, P as PluginWithExtension, S as NormalizeToGunshiParams, _ as ExtractArgs, a as CommandContext, b as GunshiParamsConstraint, c as CommandDecorator, f as CommandRunner, h as ExtendContext, j as PluginExtension, k as Plugin, m as DefaultGunshiParams, o as CommandContextCore, r as Command, s as CommandContextExtension, t as Awaitable, u as CommandExamplesFetcher, v as ExtractExtensions, w as RendererDecorator, x as LazyCommand, y as GunshiParams } from "./types-CcuJzRjy.js";
|
|
3
3
|
import { CommandContextParams, createCommandContext } from "./context.js";
|
|
4
|
-
import { n as CLI_OPTIONS_DEFAULT, t as ANONYMOUS_COMMAND_NAME } from "./constants-
|
|
4
|
+
import { n as CLI_OPTIONS_DEFAULT, t as ANONYMOUS_COMMAND_NAME } from "./constants-QPaYzi6d.js";
|
|
5
5
|
export { ANONYMOUS_COMMAND_NAME, type ArgSchema, type ArgToken, type ArgValues, type Args, type Awaitable, CLI_OPTIONS_DEFAULT, type Command, type CommandContext, type CommandContextCore, type CommandContextExtension, type CommandContextParams, type CommandDecorator, type CommandExamplesFetcher, type CommandRunner, type DefaultGunshiParams, type ExtendContext, type ExtractArgs, type ExtractExtensions, type GunshiParams, type GunshiParamsConstraint, type LazyCommand, type NormalizeToGunshiParams, type OnPluginExtension, type Plugin, type PluginContext, type PluginDependency, type PluginExtension, type PluginFunction, type PluginOptions, type PluginWithExtension, type PluginWithoutExtension, type Prettify, type RendererDecorator, type ValidationErrorsDecorator, createCommandContext, plugin };
|
package/lib/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as CLI_OPTIONS_DEFAULT, t as ANONYMOUS_COMMAND_NAME } from "./constants-WviiKqbt.js";
|
|
2
|
-
import { t as createCommandContext } from "./context-
|
|
2
|
+
import { t as createCommandContext } from "./context-BSv3I5Ip.js";
|
|
3
3
|
import { t as plugin } from "./core-eN5xmB3s.js";
|
|
4
4
|
|
|
5
5
|
export { ANONYMOUS_COMMAND_NAME, CLI_OPTIONS_DEFAULT, createCommandContext, plugin };
|
package/lib/renderer.d.ts
CHANGED
package/lib/renderer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.24.
|
|
1
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.24.3/node_modules/args-tokens/lib/parser-D95CJBHr.d.ts
|
|
2
2
|
//#region src/parser.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Entry point of argument parser.
|
|
@@ -88,7 +88,7 @@ declare function parseArgs(args: string[], options?: ParserOptions): ArgToken[];
|
|
|
88
88
|
* @returns Whether `arg` is a short option.
|
|
89
89
|
*/
|
|
90
90
|
//#endregion
|
|
91
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.24.
|
|
91
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.24.3/node_modules/args-tokens/lib/resolver.d.ts
|
|
92
92
|
//#region src/resolver.d.ts
|
|
93
93
|
/**
|
|
94
94
|
* An argument schema definition for command-line argument parsing.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as resolveLazyCommand, s as kebabnize } from "./utils-
|
|
1
|
+
import { o as resolveLazyCommand, s as kebabnize } from "./utils-DZGPApAe.js";
|
|
2
2
|
import { t as ANONYMOUS_COMMAND_NAME } from "./constants-WviiKqbt.js";
|
|
3
3
|
import { t as plugin } from "./core-eN5xmB3s.js";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as Args, n as ArgSchema, o as ArgToken, r as ArgValues, t as ArgExplicitlyProvided } from "./resolver-
|
|
1
|
+
import { i as Args, n as ArgSchema, o as ArgToken, r as ArgValues, t as ArgExplicitlyProvided } from "./resolver-D4JorBDf.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/context.d.ts
|
|
4
4
|
/**
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as GunshiParamsConstraint, m as DefaultGunshiParams, p as Commandable, r as Command, x as LazyCommand } from "./types-
|
|
1
|
+
import { b as GunshiParamsConstraint, m as DefaultGunshiParams, p as Commandable, r as Command, x as LazyCommand } from "./types-CcuJzRjy.js";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.24.
|
|
3
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.24.3/node_modules/args-tokens/lib/utils.d.ts
|
|
4
4
|
|
|
5
5
|
//#region src/utils.d.ts
|
|
6
6
|
/**
|
package/lib/utils.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as log, i as isLazyCommand, n as deepFreeze, o as resolveLazyCommand, r as getCommandSubCommands, s as kebabnize, t as create } from "./utils-
|
|
1
|
+
import { a as log, i as isLazyCommand, n as deepFreeze, o as resolveLazyCommand, r as getCommandSubCommands, s as kebabnize, t as create } from "./utils-DZGPApAe.js";
|
|
2
2
|
|
|
3
3
|
export { create, deepFreeze, getCommandSubCommands, isLazyCommand, kebabnize, log, resolveLazyCommand };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gunshi",
|
|
3
3
|
"description": "Modern javascript command-line library",
|
|
4
|
-
"version": "0.29.
|
|
4
|
+
"version": "0.29.3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -102,18 +102,18 @@
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"args-tokens": "^0.24.
|
|
106
|
-
"deno": "^2.
|
|
105
|
+
"args-tokens": "^0.24.3",
|
|
106
|
+
"deno": "^2.7.4",
|
|
107
107
|
"jsr": "^0.13.5",
|
|
108
|
-
"jsr-exports-lint": "^0.4.
|
|
109
|
-
"publint": "^0.3.
|
|
108
|
+
"jsr-exports-lint": "^0.4.2",
|
|
109
|
+
"publint": "^0.3.18",
|
|
110
110
|
"tsdown": "0.15.12",
|
|
111
|
-
"zod": "^4.
|
|
112
|
-
"@gunshi/plugin-
|
|
113
|
-
"@gunshi/plugin-
|
|
114
|
-
"@gunshi/plugin-
|
|
115
|
-
"@gunshi/
|
|
116
|
-
"@gunshi/
|
|
111
|
+
"zod": "^4.3.6",
|
|
112
|
+
"@gunshi/plugin-i18n": "0.29.3",
|
|
113
|
+
"@gunshi/plugin-global": "0.29.3",
|
|
114
|
+
"@gunshi/plugin-renderer": "0.29.3",
|
|
115
|
+
"@gunshi/resources": "0.29.3",
|
|
116
|
+
"@gunshi/shared": "0.29.3"
|
|
117
117
|
},
|
|
118
118
|
"scripts": {
|
|
119
119
|
"build": "tsdown",
|