@optique/run 1.4.0-dev.2618 → 1.4.0-dev.2619
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 +0 -2
- package/dist/run.d.cts +1 -14
- package/dist/run.d.ts +1 -14
- package/dist/run.js +0 -2
- package/package.json +4 -4
package/dist/run.cjs
CHANGED
|
@@ -83,7 +83,6 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
83
83
|
const usageLine = options.usageLine;
|
|
84
84
|
const commandList = options.commandList;
|
|
85
85
|
const sectionOrder = options.sectionOrder;
|
|
86
|
-
const helpSections = options.helpSections;
|
|
87
86
|
const help = options.help;
|
|
88
87
|
const version = options.version;
|
|
89
88
|
const completion = options.completion;
|
|
@@ -166,7 +165,6 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
166
165
|
usageLine,
|
|
167
166
|
commandList,
|
|
168
167
|
sectionOrder,
|
|
169
|
-
helpSections,
|
|
170
168
|
help: helpConfig,
|
|
171
169
|
version: versionConfig,
|
|
172
170
|
completion: completionConfig,
|
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,
|
|
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";
|
|
@@ -156,16 +156,6 @@ interface RunOptions {
|
|
|
156
156
|
* @since 1.0.0
|
|
157
157
|
*/
|
|
158
158
|
readonly sectionOrder?: (a: DocSection, b: DocSection) => number;
|
|
159
|
-
/**
|
|
160
|
-
* Groups untitled command and option entries on help pages with visible
|
|
161
|
-
* commands. Pages without commands receive no automatic headings. Explicit
|
|
162
|
-
* titles are preserved; matching automatic entries join the existing section.
|
|
163
|
-
* Supplied labels must be nonempty and contain no control characters.
|
|
164
|
-
* Also applies to full help displayed above errors.
|
|
165
|
-
*
|
|
166
|
-
* @since 1.4.0
|
|
167
|
-
*/
|
|
168
|
-
readonly helpSections?: HelpSectionsOptions;
|
|
169
159
|
/**
|
|
170
160
|
* Help configuration. Determines how help is made available:
|
|
171
161
|
*
|
|
@@ -364,7 +354,6 @@ type AcceptExactOptionalRunOptions<TOptions> = [TOptions] extends [RunOptions |
|
|
|
364
354
|
* See {@link RunOptions} for available settings.
|
|
365
355
|
* @throws {RangeError} If rendering help or errors encounters an invalid theme
|
|
366
356
|
* color, even when colors are disabled.
|
|
367
|
-
* @throws {TypeError} If a `helpSections` label is invalid.
|
|
368
357
|
* @returns The parsed result if successful. On help display or parse errors,
|
|
369
358
|
* the function will call `process.exit()` and not return.
|
|
370
359
|
*
|
|
@@ -446,7 +435,6 @@ declare function run<T extends Parser<Mode, unknown, unknown>>(parser: T, option
|
|
|
446
435
|
* @param options Configuration options for customizing behavior.
|
|
447
436
|
* @throws {RangeError} If rendering help or errors encounters an invalid theme
|
|
448
437
|
* color, even when colors are disabled.
|
|
449
|
-
* @throws {TypeError} If a `helpSections` label is invalid.
|
|
450
438
|
* @returns The parsed result if successful.
|
|
451
439
|
* @throws {TypeError} If an async parser (or a {@link Program} wrapping one)
|
|
452
440
|
* is passed at runtime. Use {@link run} or {@link runAsync} instead.
|
|
@@ -474,7 +462,6 @@ declare function runSync<T extends Parser<"sync", unknown, unknown>>(parser: T,
|
|
|
474
462
|
* @param options Configuration options for customizing behavior.
|
|
475
463
|
* @throws {RangeError} If rendering help or errors encounters an invalid theme
|
|
476
464
|
* color, even when colors are disabled.
|
|
477
|
-
* @throws {TypeError} If a `helpSections` label is invalid.
|
|
478
465
|
* @returns A Promise of the parsed result if successful.
|
|
479
466
|
* @since 0.9.0
|
|
480
467
|
*/
|
package/dist/run.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandListMode, CommandSubConfig, ContextOptionsParam,
|
|
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";
|
|
@@ -156,16 +156,6 @@ interface RunOptions {
|
|
|
156
156
|
* @since 1.0.0
|
|
157
157
|
*/
|
|
158
158
|
readonly sectionOrder?: (a: DocSection, b: DocSection) => number;
|
|
159
|
-
/**
|
|
160
|
-
* Groups untitled command and option entries on help pages with visible
|
|
161
|
-
* commands. Pages without commands receive no automatic headings. Explicit
|
|
162
|
-
* titles are preserved; matching automatic entries join the existing section.
|
|
163
|
-
* Supplied labels must be nonempty and contain no control characters.
|
|
164
|
-
* Also applies to full help displayed above errors.
|
|
165
|
-
*
|
|
166
|
-
* @since 1.4.0
|
|
167
|
-
*/
|
|
168
|
-
readonly helpSections?: HelpSectionsOptions;
|
|
169
159
|
/**
|
|
170
160
|
* Help configuration. Determines how help is made available:
|
|
171
161
|
*
|
|
@@ -364,7 +354,6 @@ type AcceptExactOptionalRunOptions<TOptions> = [TOptions] extends [RunOptions |
|
|
|
364
354
|
* See {@link RunOptions} for available settings.
|
|
365
355
|
* @throws {RangeError} If rendering help or errors encounters an invalid theme
|
|
366
356
|
* color, even when colors are disabled.
|
|
367
|
-
* @throws {TypeError} If a `helpSections` label is invalid.
|
|
368
357
|
* @returns The parsed result if successful. On help display or parse errors,
|
|
369
358
|
* the function will call `process.exit()` and not return.
|
|
370
359
|
*
|
|
@@ -446,7 +435,6 @@ declare function run<T extends Parser<Mode, unknown, unknown>>(parser: T, option
|
|
|
446
435
|
* @param options Configuration options for customizing behavior.
|
|
447
436
|
* @throws {RangeError} If rendering help or errors encounters an invalid theme
|
|
448
437
|
* color, even when colors are disabled.
|
|
449
|
-
* @throws {TypeError} If a `helpSections` label is invalid.
|
|
450
438
|
* @returns The parsed result if successful.
|
|
451
439
|
* @throws {TypeError} If an async parser (or a {@link Program} wrapping one)
|
|
452
440
|
* is passed at runtime. Use {@link run} or {@link runAsync} instead.
|
|
@@ -474,7 +462,6 @@ declare function runSync<T extends Parser<"sync", unknown, unknown>>(parser: T,
|
|
|
474
462
|
* @param options Configuration options for customizing behavior.
|
|
475
463
|
* @throws {RangeError} If rendering help or errors encounters an invalid theme
|
|
476
464
|
* color, even when colors are disabled.
|
|
477
|
-
* @throws {TypeError} If a `helpSections` label is invalid.
|
|
478
465
|
* @returns A Promise of the parsed result if successful.
|
|
479
466
|
* @since 0.9.0
|
|
480
467
|
*/
|
package/dist/run.js
CHANGED
|
@@ -82,7 +82,6 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
82
82
|
const usageLine = options.usageLine;
|
|
83
83
|
const commandList = options.commandList;
|
|
84
84
|
const sectionOrder = options.sectionOrder;
|
|
85
|
-
const helpSections = options.helpSections;
|
|
86
85
|
const help = options.help;
|
|
87
86
|
const version = options.version;
|
|
88
87
|
const completion = options.completion;
|
|
@@ -165,7 +164,6 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
165
164
|
usageLine,
|
|
166
165
|
commandList,
|
|
167
166
|
sectionOrder,
|
|
168
|
-
helpSections,
|
|
169
167
|
help: helpConfig,
|
|
170
168
|
version: versionConfig,
|
|
171
169
|
completion: completionConfig,
|
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.2619",
|
|
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.2619+6fa1e1d4"
|
|
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.2619+6fa1e1d4",
|
|
83
|
+
"@optique/env": "1.4.0-dev.2619+6fa1e1d4",
|
|
84
84
|
"@types/node": "^24.0.0",
|
|
85
85
|
"fast-check": "^4.7.0",
|
|
86
86
|
"tsdown": "^0.13.0",
|