@gunshi/resources 0.35.1 → 0.35.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/index.d.ts +16 -0
- package/lib/index.js +18 -2
- package/locales/en-US.json +9 -1
- package/locales/ja-JP.json +9 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -18,6 +18,14 @@ declare const _default: {
|
|
|
18
18
|
CHOICES: string;
|
|
19
19
|
help: string;
|
|
20
20
|
version: string;
|
|
21
|
+
"err:arg:required-option": string;
|
|
22
|
+
"err:arg:required-positional": string;
|
|
23
|
+
"err:arg:invalid-type": string;
|
|
24
|
+
"err:arg:invalid-choice": string;
|
|
25
|
+
"err:arg:custom-parse": string;
|
|
26
|
+
"err:arg:unknown-option": string;
|
|
27
|
+
"err:cmd:not-found": string;
|
|
28
|
+
"err:suggestion:did-you-mean": string;
|
|
21
29
|
};
|
|
22
30
|
'ja-JP': {
|
|
23
31
|
COMMAND: string;
|
|
@@ -33,6 +41,14 @@ declare const _default: {
|
|
|
33
41
|
CHOICES: string;
|
|
34
42
|
help: string;
|
|
35
43
|
version: string;
|
|
44
|
+
"err:arg:required-option": string;
|
|
45
|
+
"err:arg:required-positional": string;
|
|
46
|
+
"err:arg:invalid-type": string;
|
|
47
|
+
"err:arg:invalid-choice": string;
|
|
48
|
+
"err:arg:custom-parse": string;
|
|
49
|
+
"err:arg:unknown-option": string;
|
|
50
|
+
"err:cmd:not-found": string;
|
|
51
|
+
"err:suggestion:did-you-mean": string;
|
|
36
52
|
};
|
|
37
53
|
};
|
|
38
54
|
//#endregion
|
package/lib/index.js
CHANGED
|
@@ -18,7 +18,15 @@ var src_default = {
|
|
|
18
18
|
DEFAULT: "default",
|
|
19
19
|
CHOICES: "choices",
|
|
20
20
|
help: "Display this help message",
|
|
21
|
-
version: "Display this version"
|
|
21
|
+
version: "Display this version",
|
|
22
|
+
"err:arg:required-option": "Optional argument {$displayName} is required",
|
|
23
|
+
"err:arg:required-positional": "Positional argument {$name} is required",
|
|
24
|
+
"err:arg:invalid-type": "Invalid value for {$displayName}: expected {$expected}",
|
|
25
|
+
"err:arg:invalid-choice": "Invalid value for {$displayName}: expected one of {$choices}",
|
|
26
|
+
"err:arg:custom-parse": "Invalid value for {$displayName}: {$reason}",
|
|
27
|
+
"err:arg:unknown-option": "Unknown option: {$rawName}",
|
|
28
|
+
"err:cmd:not-found": "Command not found: {$commandName}",
|
|
29
|
+
"err:suggestion:did-you-mean": "Did you mean {$name}?"
|
|
22
30
|
},
|
|
23
31
|
"ja-JP": {
|
|
24
32
|
COMMAND: "コマンド",
|
|
@@ -33,7 +41,15 @@ var src_default = {
|
|
|
33
41
|
DEFAULT: "デフォルト",
|
|
34
42
|
CHOICES: "選択肢",
|
|
35
43
|
help: "このヘルプメッセージを表示",
|
|
36
|
-
version: "このバージョンを表示"
|
|
44
|
+
version: "このバージョンを表示",
|
|
45
|
+
"err:arg:required-option": "オプション {$displayName} は必須です",
|
|
46
|
+
"err:arg:required-positional": "位置引数 {$name} は必須です",
|
|
47
|
+
"err:arg:invalid-type": "{$displayName} の値が不正です。期待される型: {$expected}",
|
|
48
|
+
"err:arg:invalid-choice": "{$displayName} の値が不正です。指定可能な値: {$choices}",
|
|
49
|
+
"err:arg:custom-parse": "{$displayName} の値が不正です: {$reason}",
|
|
50
|
+
"err:arg:unknown-option": "未定義のオプションです: {$rawName}",
|
|
51
|
+
"err:cmd:not-found": "コマンドが見つかりません: {$commandName}",
|
|
52
|
+
"err:suggestion:did-you-mean": "{$name} の指定ミスではありませんか?"
|
|
37
53
|
}
|
|
38
54
|
};
|
|
39
55
|
//#endregion
|
package/locales/en-US.json
CHANGED
|
@@ -11,5 +11,13 @@
|
|
|
11
11
|
"DEFAULT": "default",
|
|
12
12
|
"CHOICES": "choices",
|
|
13
13
|
"help": "Display this help message",
|
|
14
|
-
"version": "Display this version"
|
|
14
|
+
"version": "Display this version",
|
|
15
|
+
"err:arg:required-option": "Optional argument {$displayName} is required",
|
|
16
|
+
"err:arg:required-positional": "Positional argument {$name} is required",
|
|
17
|
+
"err:arg:invalid-type": "Invalid value for {$displayName}: expected {$expected}",
|
|
18
|
+
"err:arg:invalid-choice": "Invalid value for {$displayName}: expected one of {$choices}",
|
|
19
|
+
"err:arg:custom-parse": "Invalid value for {$displayName}: {$reason}",
|
|
20
|
+
"err:arg:unknown-option": "Unknown option: {$rawName}",
|
|
21
|
+
"err:cmd:not-found": "Command not found: {$commandName}",
|
|
22
|
+
"err:suggestion:did-you-mean": "Did you mean {$name}?"
|
|
15
23
|
}
|
package/locales/ja-JP.json
CHANGED
|
@@ -11,5 +11,13 @@
|
|
|
11
11
|
"DEFAULT": "デフォルト",
|
|
12
12
|
"CHOICES": "選択肢",
|
|
13
13
|
"help": "このヘルプメッセージを表示",
|
|
14
|
-
"version": "このバージョンを表示"
|
|
14
|
+
"version": "このバージョンを表示",
|
|
15
|
+
"err:arg:required-option": "オプション {$displayName} は必須です",
|
|
16
|
+
"err:arg:required-positional": "位置引数 {$name} は必須です",
|
|
17
|
+
"err:arg:invalid-type": "{$displayName} の値が不正です。期待される型: {$expected}",
|
|
18
|
+
"err:arg:invalid-choice": "{$displayName} の値が不正です。指定可能な値: {$choices}",
|
|
19
|
+
"err:arg:custom-parse": "{$displayName} の値が不正です: {$reason}",
|
|
20
|
+
"err:arg:unknown-option": "未定義のオプションです: {$rawName}",
|
|
21
|
+
"err:cmd:not-found": "コマンドが見つかりません: {$commandName}",
|
|
22
|
+
"err:suggestion:did-you-mean": "{$name} の指定ミスではありませんか?"
|
|
15
23
|
}
|