@optique/run 1.4.0-dev.2630 → 1.4.0-dev.2633
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.cjs +2 -0
- package/dist/run.d.cts +7 -1
- package/dist/run.d.ts +7 -1
- package/dist/run.js +2 -0
- package/package.json +4 -4
package/dist/run.cjs
CHANGED
|
@@ -79,6 +79,7 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
79
79
|
const termWidth = options.termWidth;
|
|
80
80
|
const showDefault = options.showDefault;
|
|
81
81
|
const showChoices = options.showChoices;
|
|
82
|
+
const showEnvironment = options.showEnvironment;
|
|
82
83
|
const showUsage = options.showUsage;
|
|
83
84
|
const usageLine = options.usageLine;
|
|
84
85
|
const commandList = options.commandList;
|
|
@@ -162,6 +163,7 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
162
163
|
termWidth,
|
|
163
164
|
showDefault,
|
|
164
165
|
showChoices,
|
|
166
|
+
showEnvironment,
|
|
165
167
|
showUsage,
|
|
166
168
|
usageLine,
|
|
167
169
|
commandList,
|
package/dist/run.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import { SourceContext } from "@optique/core/context";
|
|
|
5
5
|
import { CommandListMode, CommandSubConfig, ContextOptionsParam, HelpSectionsOptions, 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
|
-
import { DocSection, ShowChoicesOptions, ShowDefaultOptions } from "@optique/core/doc";
|
|
8
|
+
import { DocSection, ShowChoicesOptions, ShowDefaultOptions, ShowEnvironmentOptions } from "@optique/core/doc";
|
|
9
9
|
import { Usage } from "@optique/core/usage";
|
|
10
10
|
|
|
11
11
|
//#region src/run.d.ts
|
|
@@ -107,6 +107,12 @@ interface RunOptions {
|
|
|
107
107
|
* @since 0.10.0
|
|
108
108
|
*/
|
|
109
109
|
readonly showChoices?: boolean | ShowChoicesOptions;
|
|
110
|
+
/**
|
|
111
|
+
* Displays declared environment bindings in help. `true` selects inline
|
|
112
|
+
* annotations; an object can select a section or both. Defaults to `false`.
|
|
113
|
+
* Also applies to full help above errors. @since 1.4.0
|
|
114
|
+
*/
|
|
115
|
+
readonly showEnvironment?: boolean | ShowEnvironmentOptions;
|
|
110
116
|
/**
|
|
111
117
|
* Whether to include the usage synopsis in full help output.
|
|
112
118
|
*
|
package/dist/run.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ShellCompletion } from "@optique/core/completion";
|
|
|
5
5
|
import { SourceContext } from "@optique/core/context";
|
|
6
6
|
import { InferMode, InferValue, Mode, ModeValue, Parser } from "@optique/core/parser";
|
|
7
7
|
import { Program } from "@optique/core/program";
|
|
8
|
-
import { DocSection, ShowChoicesOptions, ShowDefaultOptions } from "@optique/core/doc";
|
|
8
|
+
import { DocSection, ShowChoicesOptions, ShowDefaultOptions, ShowEnvironmentOptions } from "@optique/core/doc";
|
|
9
9
|
import { Usage } from "@optique/core/usage";
|
|
10
10
|
|
|
11
11
|
//#region src/run.d.ts
|
|
@@ -107,6 +107,12 @@ interface RunOptions {
|
|
|
107
107
|
* @since 0.10.0
|
|
108
108
|
*/
|
|
109
109
|
readonly showChoices?: boolean | ShowChoicesOptions;
|
|
110
|
+
/**
|
|
111
|
+
* Displays declared environment bindings in help. `true` selects inline
|
|
112
|
+
* annotations; an object can select a section or both. Defaults to `false`.
|
|
113
|
+
* Also applies to full help above errors. @since 1.4.0
|
|
114
|
+
*/
|
|
115
|
+
readonly showEnvironment?: boolean | ShowEnvironmentOptions;
|
|
110
116
|
/**
|
|
111
117
|
* Whether to include the usage synopsis in full help output.
|
|
112
118
|
*
|
package/dist/run.js
CHANGED
|
@@ -78,6 +78,7 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
78
78
|
const termWidth = options.termWidth;
|
|
79
79
|
const showDefault = options.showDefault;
|
|
80
80
|
const showChoices = options.showChoices;
|
|
81
|
+
const showEnvironment = options.showEnvironment;
|
|
81
82
|
const showUsage = options.showUsage;
|
|
82
83
|
const usageLine = options.usageLine;
|
|
83
84
|
const commandList = options.commandList;
|
|
@@ -161,6 +162,7 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
161
162
|
termWidth,
|
|
162
163
|
showDefault,
|
|
163
164
|
showChoices,
|
|
165
|
+
showEnvironment,
|
|
164
166
|
showUsage,
|
|
165
167
|
usageLine,
|
|
166
168
|
commandList,
|
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.2633",
|
|
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.2633+ee18a31e"
|
|
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.2633+ee18a31e",
|
|
83
|
+
"@optique/env": "1.4.0-dev.2633+ee18a31e",
|
|
84
84
|
"@types/node": "^24.0.0",
|
|
85
85
|
"fast-check": "^4.7.0",
|
|
86
86
|
"tsdown": "^0.13.0",
|