gunshi 0.10.4 → 0.11.0
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/context.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ArgOptions, ArgValues } from 'args-tokens';
|
|
2
|
-
import { C as Command, a as CommandOptions, b as CommandContext } from './types.d-
|
|
2
|
+
import { C as Command, a as CommandOptions, b as CommandContext } from './types.d-VymWn7vz.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Parameters of {@link createCommandContext}
|
package/lib/generator.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ArgOptions } from 'args-tokens';
|
|
2
|
-
import { C as Command,
|
|
2
|
+
import { C as Command, a as CommandOptions } from './types.d-VymWn7vz.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Generate the command usage
|
|
6
6
|
* @param command - usage generate command, if you want to generate the usage of the default command where there are target commands and sub-commands, specify `null`.
|
|
7
|
-
* @param entry - A {@link Command | entry command}
|
|
7
|
+
* @param entry - A {@link Command | entry command}
|
|
8
8
|
* @param opts - A {@link CommandOptions | command options}
|
|
9
9
|
* @returns A rendered usage
|
|
10
10
|
*/
|
|
11
|
-
declare function generate<Options extends ArgOptions = ArgOptions>(command: string | null, entry: Command<Options
|
|
11
|
+
declare function generate<Options extends ArgOptions = ArgOptions>(command: string | null, entry: Command<Options>, opts?: CommandOptions<Options>): Promise<string>;
|
|
12
12
|
|
|
13
13
|
export { generate };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArgOptions } from 'args-tokens';
|
|
2
2
|
export { ArgOptionSchema, ArgOptions, ArgValues } from 'args-tokens';
|
|
3
|
-
import { C as Command, c as CommandRunner, a as CommandOptions, T as TranslationAdapter, d as TranslationAdapterFactoryOptions } from './types.d-
|
|
4
|
-
export { g as CommandBuiltinKeys, e as CommandBuiltinOptionsKeys, f as CommandBuiltinResourceKeys, b as CommandContext, h as CommandEnvironment, i as CommandResource, j as CommandResourceFetcher, l as Commandable, G as GenerateNamespacedKey, L as LazyCommand, k as TranslationAdapterFactory } from './types.d-
|
|
3
|
+
import { C as Command, c as CommandRunner, a as CommandOptions, T as TranslationAdapter, d as TranslationAdapterFactoryOptions } from './types.d-VymWn7vz.js';
|
|
4
|
+
export { g as CommandBuiltinKeys, e as CommandBuiltinOptionsKeys, f as CommandBuiltinResourceKeys, b as CommandContext, h as CommandEnvironment, i as CommandResource, j as CommandResourceFetcher, l as Commandable, G as GenerateNamespacedKey, L as LazyCommand, k as TranslationAdapterFactory } from './types.d-VymWn7vz.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Run the command
|
package/lib/renderer/index.d.ts
CHANGED
|
@@ -31,7 +31,15 @@ declare const __constants_ts_COMMON_OPTIONS: typeof COMMON_OPTIONS;
|
|
|
31
31
|
declare const __constants_ts_DEFAULT_LOCALE: typeof DEFAULT_LOCALE;
|
|
32
32
|
declare const __constants_ts_NOOP: typeof NOOP;
|
|
33
33
|
declare namespace __constants_ts {
|
|
34
|
-
export {
|
|
34
|
+
export {
|
|
35
|
+
__constants_ts_BUILT_IN_KEY_SEPARATOR as BUILT_IN_KEY_SEPARATOR,
|
|
36
|
+
__constants_ts_BUILT_IN_PREFIX as BUILT_IN_PREFIX,
|
|
37
|
+
__constants_ts_COMMAND_BUILTIN_RESOURCE_KEYS as COMMAND_BUILTIN_RESOURCE_KEYS,
|
|
38
|
+
__constants_ts_COMMAND_OPTIONS_DEFAULT as COMMAND_OPTIONS_DEFAULT,
|
|
39
|
+
__constants_ts_COMMON_OPTIONS as COMMON_OPTIONS,
|
|
40
|
+
__constants_ts_DEFAULT_LOCALE as DEFAULT_LOCALE,
|
|
41
|
+
__constants_ts_NOOP as NOOP,
|
|
42
|
+
};
|
|
35
43
|
}
|
|
36
44
|
|
|
37
45
|
/**
|
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.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -75,18 +75,19 @@
|
|
|
75
75
|
"args-tokens": "^0.12.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@eslint/markdown": "^6.
|
|
78
|
+
"@eslint/markdown": "^6.3.0",
|
|
79
79
|
"@intlify/core": "next",
|
|
80
80
|
"@kazupon/eslint-config": "^0.26.1",
|
|
81
81
|
"@kazupon/prettier-config": "^0.1.1",
|
|
82
|
-
"@types/node": "^22.13.
|
|
83
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
84
|
-
"bumpp": "^10.0
|
|
85
|
-
"
|
|
86
|
-
"eslint
|
|
87
|
-
"eslint-
|
|
82
|
+
"@types/node": "^22.13.14",
|
|
83
|
+
"@vitest/eslint-plugin": "^1.1.38",
|
|
84
|
+
"bumpp": "^10.1.0",
|
|
85
|
+
"deno": "^2.2.6",
|
|
86
|
+
"eslint": "^9.23.0",
|
|
87
|
+
"eslint-config-prettier": "^10.1.1",
|
|
88
|
+
"eslint-import-resolver-typescript": "^4.2.7",
|
|
88
89
|
"eslint-plugin-import": "^2.31.0",
|
|
89
|
-
"eslint-plugin-jsonc": "^2.
|
|
90
|
+
"eslint-plugin-jsonc": "^2.20.0",
|
|
90
91
|
"eslint-plugin-module-interop": "^0.3.0",
|
|
91
92
|
"eslint-plugin-promise": "^7.2.1",
|
|
92
93
|
"eslint-plugin-regexp": "^2.7.0",
|
|
@@ -95,17 +96,17 @@
|
|
|
95
96
|
"eslint-plugin-yml": "^1.17.0",
|
|
96
97
|
"gh-changelogen": "^0.2.8",
|
|
97
98
|
"jsr": "^0.13.4",
|
|
98
|
-
"knip": "^5.
|
|
99
|
-
"lint-staged": "^15.
|
|
99
|
+
"knip": "^5.46.3",
|
|
100
|
+
"lint-staged": "^15.5.0",
|
|
100
101
|
"messageformat": "4.0.0-10",
|
|
101
102
|
"pkg-pr-new": "^0.0.41",
|
|
102
103
|
"prettier": "^3.5.3",
|
|
103
|
-
"tsdown": "^0.6.
|
|
104
|
-
"typescript": "^5.
|
|
105
|
-
"typescript-eslint": "^8.
|
|
104
|
+
"tsdown": "^0.6.10",
|
|
105
|
+
"typescript": "^5.8.2",
|
|
106
|
+
"typescript-eslint": "^8.28.0",
|
|
106
107
|
"vitepress": "^1.6.3",
|
|
107
108
|
"vitepress-plugin-group-icons": "^1.3.8",
|
|
108
|
-
"vitest": "^3.0.
|
|
109
|
+
"vitest": "^3.0.9"
|
|
109
110
|
},
|
|
110
111
|
"prettier": "@kazupon/prettier-config",
|
|
111
112
|
"lint-staged": {
|
|
@@ -141,6 +142,8 @@
|
|
|
141
142
|
"lint:prettier": "prettier . --check",
|
|
142
143
|
"release": "bumpp --commit \"release: v%s\" --all --push --tag",
|
|
143
144
|
"test": "vitest run",
|
|
144
|
-
"typecheck": "
|
|
145
|
+
"typecheck": "pnpm run --stream --color \"/^typecheck:/\"",
|
|
146
|
+
"typecheck:deno": "deno check --all ./src",
|
|
147
|
+
"typecheck:tsc": "tsc --noEmit"
|
|
145
148
|
}
|
|
146
149
|
}
|