@optique/run 1.4.0-dev.2607 → 1.4.0-dev.2608
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/dist/run.d.cts +6 -1
- package/dist/run.d.ts +6 -1
- package/package.json +4 -4
package/dist/run.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { Message, MessageFormatter } from "@optique/core/message";
|
|
|
2
2
|
import { TerminalTheme } from "@optique/core/terminal";
|
|
3
3
|
import { ShellCompletion } from "@optique/core/completion";
|
|
4
4
|
import { SourceContext } from "@optique/core/context";
|
|
5
|
-
import { CommandListMode, CommandSubConfig, ContextOptionsParam, OptionSubConfig } from "@optique/core/facade";
|
|
5
|
+
import { CommandListMode, CommandSubConfig, ContextOptionsParam, OptionSubConfig, RunOptions as RunOptions$1 } from "@optique/core/facade";
|
|
6
6
|
import { InferMode, InferValue, Mode, ModeValue, Parser } from "@optique/core/parser";
|
|
7
7
|
import { Program } from "@optique/core/program";
|
|
8
8
|
import { DocSection, ShowChoicesOptions, ShowDefaultOptions } from "@optique/core/doc";
|
|
@@ -215,6 +215,11 @@ interface RunOptions {
|
|
|
215
215
|
*/
|
|
216
216
|
readonly completion?: "command" | "option" | "both" | ({
|
|
217
217
|
readonly shells?: Record<string, ShellCompletion>;
|
|
218
|
+
/**
|
|
219
|
+
* Custom messages for missing or unsupported completion shells.
|
|
220
|
+
* @since 1.4.0
|
|
221
|
+
*/
|
|
222
|
+
readonly errors?: NonNullable<RunOptions$1<never, never>["completion"]>["errors"];
|
|
218
223
|
} & ({
|
|
219
224
|
readonly command: true | CommandSubConfig;
|
|
220
225
|
readonly option?: true | OptionSubConfig;
|
package/dist/run.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandListMode, CommandSubConfig, ContextOptionsParam, OptionSubConfig } from "@optique/core/facade";
|
|
1
|
+
import { CommandListMode, CommandSubConfig, ContextOptionsParam, OptionSubConfig, RunOptions as RunOptions$1 } from "@optique/core/facade";
|
|
2
2
|
import { Message, MessageFormatter } from "@optique/core/message";
|
|
3
3
|
import { TerminalTheme } from "@optique/core/terminal";
|
|
4
4
|
import { ShellCompletion } from "@optique/core/completion";
|
|
@@ -215,6 +215,11 @@ interface RunOptions {
|
|
|
215
215
|
*/
|
|
216
216
|
readonly completion?: "command" | "option" | "both" | ({
|
|
217
217
|
readonly shells?: Record<string, ShellCompletion>;
|
|
218
|
+
/**
|
|
219
|
+
* Custom messages for missing or unsupported completion shells.
|
|
220
|
+
* @since 1.4.0
|
|
221
|
+
*/
|
|
222
|
+
readonly errors?: NonNullable<RunOptions$1<never, never>["completion"]>["errors"];
|
|
218
223
|
} & ({
|
|
219
224
|
readonly command: true | CommandSubConfig;
|
|
220
225
|
readonly option?: true | OptionSubConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/run",
|
|
3
|
-
"version": "1.4.0-dev.
|
|
3
|
+
"version": "1.4.0-dev.2608",
|
|
4
4
|
"description": "Type-safe combinatorial command-line interface parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
},
|
|
77
77
|
"sideEffects": false,
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@optique/core": "1.4.0-dev.
|
|
79
|
+
"@optique/core": "1.4.0-dev.2608+513a8817"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@optique/config": "1.4.0-dev.
|
|
83
|
-
"@optique/env": "1.4.0-dev.
|
|
82
|
+
"@optique/config": "1.4.0-dev.2608+513a8817",
|
|
83
|
+
"@optique/env": "1.4.0-dev.2608+513a8817",
|
|
84
84
|
"@types/node": "^24.0.0",
|
|
85
85
|
"fast-check": "^4.7.0",
|
|
86
86
|
"tsdown": "^0.13.0",
|