@gunshi/plugin-renderer 1.0.0-rc.3 → 1.0.0-rc.5
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 +0 -6
- package/lib/index.d.ts +7 -9
- package/lib/index.js +4 -4
- package/package.json +5 -10
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[![Version][npm-version-src]][npm-version-href]
|
|
4
4
|
[![InstallSize][install-size-src]][install-size-src]
|
|
5
|
-
[![JSR][jsr-src]][jsr-href]
|
|
6
5
|
|
|
7
6
|
> usage renderer plugin for gunshi.
|
|
8
7
|
|
|
@@ -20,9 +19,6 @@ pnpm add @gunshi/plugin-renderer
|
|
|
20
19
|
# yarn
|
|
21
20
|
yarn add @gunshi/plugin-renderer
|
|
22
21
|
|
|
23
|
-
# deno
|
|
24
|
-
deno add jsr:@gunshi/plugin-renderer
|
|
25
|
-
|
|
26
22
|
# bun
|
|
27
23
|
bun add @gunshi/plugin-renderer
|
|
28
24
|
```
|
|
@@ -270,6 +266,4 @@ See the [API References](./docs/index.md)
|
|
|
270
266
|
|
|
271
267
|
[npm-version-src]: https://img.shields.io/npm/v/@gunshi/plugin-renderer?style=flat
|
|
272
268
|
[npm-version-href]: https://npmjs.com/package/@gunshi/plugin-renderer@alpha
|
|
273
|
-
[jsr-src]: https://jsr.io/badges/@gunshi/plugin-renderer
|
|
274
|
-
[jsr-href]: https://jsr.io/@gunshi/plugin-renderer
|
|
275
269
|
[install-size-src]: https://pkg-size.dev/badge/install/101075
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Args, Command, CommandContext, DefaultGunshiParams, GunshiParams, PluginWithExtension } from "@gunshi/plugin";
|
|
2
2
|
import "@gunshi/plugin-i18n";
|
|
3
|
-
//#region ../../node_modules/.pnpm/args-tokens@1.0.
|
|
4
|
-
//#region src/resolver.d.ts
|
|
3
|
+
//#region ../../node_modules/.pnpm/args-tokens@1.0.2/node_modules/args-tokens/lib/resolver.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* An argument schema definition for command-line argument parsing.
|
|
7
6
|
*
|
|
@@ -363,9 +362,9 @@ interface ArgSchema {
|
|
|
363
362
|
*/
|
|
364
363
|
toKebab?: true;
|
|
365
364
|
/**
|
|
366
|
-
* Names of other
|
|
365
|
+
* Names of other arguments that conflict with this argument.
|
|
367
366
|
*
|
|
368
|
-
* When this
|
|
367
|
+
* When this argument is used together with any of the conflicting arguments, the error is an
|
|
369
368
|
* `ArgResolveError` with type 'conflict' and the code `err:arg:conflict`
|
|
370
369
|
* ({@link ArgsValidationErrorKeys}.conflict). Its `values` has the `displayName` and `name` of
|
|
371
370
|
* the argument whose `conflicts` names the other one, and the `conflictDisplayName` and
|
|
@@ -375,9 +374,8 @@ interface ArgSchema {
|
|
|
375
374
|
*
|
|
376
375
|
* A positional argument can be on either side, such as `[file]` and `--stdin`. It conflicts when
|
|
377
376
|
* it is given, and it is shown by its name, such as `'file'` (in kebab-case with `toKebab`), as
|
|
378
|
-
* in its other errors. The message
|
|
379
|
-
* `
|
|
380
|
-
* `Optional argument '--stdin' conflicts with 'file'`.
|
|
377
|
+
* in its other errors. The message names the argument given as `name` first:
|
|
378
|
+
* `'file' conflicts with '--stdin'` or `'--stdin' conflicts with 'file'`.
|
|
381
379
|
*
|
|
382
380
|
* Conflicts only need to be defined on one side - if option A defines a conflict
|
|
383
381
|
* with option B, the conflict is automatically detected when both are used,
|
|
@@ -416,7 +414,7 @@ interface ArgSchema {
|
|
|
416
414
|
* }
|
|
417
415
|
* }
|
|
418
416
|
* // Usage: --summer --autumn reports an error
|
|
419
|
-
* // Error: "
|
|
417
|
+
* // Error: "'--summer' conflicts with '--autumn'"
|
|
420
418
|
* ```
|
|
421
419
|
*
|
|
422
420
|
* @example
|
|
@@ -456,7 +454,7 @@ interface ArgSchema {
|
|
|
456
454
|
* toKebab: true // Accessible as --autumn-season
|
|
457
455
|
* }
|
|
458
456
|
* }
|
|
459
|
-
* // Error: "
|
|
457
|
+
* // Error: "'--summer-season' conflicts with '--autumn-season'"
|
|
460
458
|
* ```
|
|
461
459
|
*/
|
|
462
460
|
conflicts?: string | string[];
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ANONYMOUS_COMMAND_NAME, ArgsValidationErrorKeys, createCommandContext, isArgsValidationError, isCommandNotFoundError, isCommandResolutionError, plugin } from "@gunshi/plugin";
|
|
2
|
-
//#region ../../node_modules/.pnpm/args-tokens@1.0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/args-tokens@1.0.2/node_modules/args-tokens/lib/utils.js
|
|
3
3
|
/**
|
|
4
4
|
* Entry point of utils.
|
|
5
5
|
*
|
|
@@ -152,14 +152,14 @@ var en_US_default = {
|
|
|
152
152
|
CHOICES: "choices",
|
|
153
153
|
help: "Display this help message",
|
|
154
154
|
version: "Display this version",
|
|
155
|
-
"err:arg:required-option": "
|
|
155
|
+
"err:arg:required-option": "Option {$displayName} is required",
|
|
156
156
|
"err:arg:required-positional": "Positional argument {$displayName} is required",
|
|
157
157
|
"err:arg:invalid-type": "Invalid value for {$displayName}: expected {$expected}",
|
|
158
158
|
"err:arg:invalid-choice": "Invalid value for {$displayName}: expected one of {$choices}",
|
|
159
159
|
"err:arg:custom-parse": "Invalid value for {$displayName}: {$reason}",
|
|
160
160
|
"err:arg:unknown-option": "Unknown option: {$rawName}",
|
|
161
|
-
"err:arg:unexpected-value": "
|
|
162
|
-
"err:arg:missing-value": "
|
|
161
|
+
"err:arg:unexpected-value": "Option {$displayName} does not take a value",
|
|
162
|
+
"err:arg:missing-value": "Option {$displayName} requires a value",
|
|
163
163
|
"err:arg:missing-value:hint": "(to pass '{$next}' as its value, write '{$suggestion}')",
|
|
164
164
|
"err:arg:conflict": "{$displayName} conflicts with {$conflictDisplayName}",
|
|
165
165
|
"err:arg:invalid-default": "Invalid default for {$displayName}: {$actual} is not one of {$choices}",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gunshi/plugin-renderer",
|
|
3
3
|
"description": "usage renderer plugin for gunshi",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.5",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -53,23 +53,18 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@gunshi/plugin": "1.0.0-rc.
|
|
56
|
+
"@gunshi/plugin": "1.0.0-rc.5"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@gunshi/plugin-i18n": "1.0.0-rc.
|
|
59
|
+
"@gunshi/plugin-i18n": "1.0.0-rc.5"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@gunshi/shared": "1.0.0-rc.
|
|
63
|
-
"deno": "^2.7.14",
|
|
64
|
-
"jsr": "^0.14.3",
|
|
65
|
-
"jsr-exports-lint": "^0.4.2",
|
|
62
|
+
"@gunshi/shared": "1.0.0-rc.5",
|
|
66
63
|
"publint": "^0.3.20",
|
|
67
64
|
"tsdown": "0.22.14"
|
|
68
65
|
},
|
|
69
66
|
"scripts": {
|
|
70
67
|
"build": "tsdown",
|
|
71
|
-
"build:docs": "tsx ../../scripts/api-references.ts"
|
|
72
|
-
"lint:jsr": "jsr publish --dry-run --allow-dirty",
|
|
73
|
-
"typecheck:deno": "deno check --import-map=../../importmap.json ./src"
|
|
68
|
+
"build:docs": "tsx ../../scripts/api-references.ts"
|
|
74
69
|
}
|
|
75
70
|
}
|