@ariestools/cli-kit-yargs 1.0.0 → 1.0.1
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/README.md
CHANGED
|
@@ -4,9 +4,16 @@ Yargs adapter for reusable actor command-line applications.
|
|
|
4
4
|
|
|
5
5
|
The package keeps Yargs out of `@ariestools/cli-kit` while routing parser help, version, validation errors, asynchronous failures, and exits through the core `ProcessHost` boundary. This makes a configured CLI safe to exercise with a recording host instead of allowing Yargs to write to the ambient console or terminate the test process.
|
|
6
6
|
|
|
7
|
+
`runYargsApplication` accepts an optional `mapFailureToExitCode` mapper applied to parser and handler failures alike: the mapper receives the failure origin (`'parse'` for validation failures, `'handler'` for handler or middleware rejections), returning a number selects the exit code, `undefined` retains the default exit code one, and help and error output are unchanged. A mapper that throws, or returns a code outside the integer range 0–255, falls back to exit code one. Intentional `ProcessExitError` exits pass through untouched.
|
|
8
|
+
|
|
7
9
|
Use `environmentToYargsConfig` when an application owns config-file loading and wants to replace Yargs' process-global `.env()` lookup with an explicitly supplied environment. The resulting flat dotted object preserves Yargs' environment key normalization and can be passed to `.config()` before parsing:
|
|
8
10
|
|
|
9
11
|
```ts
|
|
12
|
+
import { createNodeProcessHostWithDotEnv } from '@ariestools/cli-kit-node'
|
|
13
|
+
import { environmentToYargsConfig, runYargsApplication } from '@ariestools/cli-kit-yargs'
|
|
14
|
+
|
|
15
|
+
const host = createNodeProcessHostWithDotEnv()
|
|
16
|
+
|
|
10
17
|
await runYargsApplication({
|
|
11
18
|
host,
|
|
12
19
|
configure: parser => parser
|
|
@@ -18,7 +25,7 @@ await runYargsApplication({
|
|
|
18
25
|
})
|
|
19
26
|
```
|
|
20
27
|
|
|
21
|
-
This conversion preserves command-line-over-environment precedence, but it is not a general substitute for
|
|
28
|
+
Load dotenv files through `@ariestools/cli-kit-node` (`loadDotEnvFile` / `createNodeProcessHostWithDotEnv`) so values reach `host.environment` without mutating `process.env`. This conversion preserves command-line-over-environment precedence, but it is not a general substitute for Yargs-native config-file options: Yargs ranks config objects below config files, and treats a top-level `extends` key in a config object specially. Such applications should resolve those precedence and reserved-key rules before passing the object to `.config()`.
|
|
22
29
|
|
|
23
30
|
## License
|
|
24
31
|
|
package/dist/node/index.mjs
CHANGED
|
@@ -37,7 +37,8 @@ function environmentToYargsConfig(environment, prefix) {
|
|
|
37
37
|
// src/runYargsApplication.ts
|
|
38
38
|
import {
|
|
39
39
|
exitProcess,
|
|
40
|
-
ProcessExitError
|
|
40
|
+
ProcessExitError,
|
|
41
|
+
resolveFailureExitCode
|
|
41
42
|
} from "@ariestools/cli-kit";
|
|
42
43
|
import yargs from "yargs";
|
|
43
44
|
import { hideBin } from "yargs/helpers";
|
|
@@ -55,6 +56,7 @@ function reportFailureHandlerError(host, result) {
|
|
|
55
56
|
async function runYargsApplication({
|
|
56
57
|
configure,
|
|
57
58
|
host,
|
|
59
|
+
mapFailureToExitCode,
|
|
58
60
|
onFailure
|
|
59
61
|
}) {
|
|
60
62
|
const applicationArguments = hideBin([...host.argv]);
|
|
@@ -72,7 +74,7 @@ async function runYargsApplication({
|
|
|
72
74
|
host.io.error();
|
|
73
75
|
host.io.error(error);
|
|
74
76
|
reportFailureHandlerError(host, failureHandlerResult);
|
|
75
|
-
exitProcess(host,
|
|
77
|
+
exitProcess(host, resolveFailureExitCode(mapFailureToExitCode, error, "handler"));
|
|
76
78
|
}
|
|
77
79
|
if (captured.error !== void 0) {
|
|
78
80
|
const failureHandlerResult = await invokeFailureHandler(onFailure, captured.error);
|
|
@@ -82,7 +84,7 @@ async function runYargsApplication({
|
|
|
82
84
|
host.io.error(captured.error);
|
|
83
85
|
}
|
|
84
86
|
reportFailureHandlerError(host, failureHandlerResult);
|
|
85
|
-
exitProcess(host,
|
|
87
|
+
exitProcess(host, resolveFailureExitCode(mapFailureToExitCode, captured.error, "parse"));
|
|
86
88
|
}
|
|
87
89
|
if (captured.output.length > 0) {
|
|
88
90
|
host.io.log(captured.output);
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/environmentToYargsConfig.ts", "../../src/runYargsApplication.ts"],
|
|
4
|
-
"sourcesContent": ["export type CliEnvironment = Readonly<Record<string, string | undefined>>\n\n/**\n * Matches the segment normalization used by yargs-parser for environment keys.\n * Keeping this local avoids coupling the adapter to an unexported parser helper.\n */\nfunction camelCaseEnvironmentSegment(value: string): string {\n const isCamelCase = value !== value.toLowerCase() && value !== value.toUpperCase()\n const normalized = isCamelCase ? value : value.toLowerCase()\n if (!normalized.includes('-') && !normalized.includes('_')) return normalized\n\n let result = ''\n let isNextCharacterUpper = false\n const leadingHyphens = /^-+/.exec(normalized)\n const start = leadingHyphens?.[0].length ?? 0\n for (let index = start; index < normalized.length; index++) {\n let character = normalized.charAt(index)\n if (isNextCharacterUpper) {\n isNextCharacterUpper = false\n character = character.toUpperCase()\n }\n if (index !== 0 && (character === '-' || character === '_')) {\n isNextCharacterUpper = true\n } else if (character !== '-' && character !== '_') {\n result += character\n }\n }\n return result\n}\n\n/**\n * Converts a prefixed environment into the flat dotted config shape accepted\n * by Yargs. Values remain strings so Yargs applies its normal option typing and\n * coercion after command-line arguments have taken precedence.\n */\nexport function environmentToYargsConfig(\n environment: CliEnvironment,\n prefix: string,\n): Record<string, string | undefined> {\n const config: Record<string, string | undefined> = {}\n for (const [environmentName, environmentValue] of Object.entries(environment)) {\n if (!environmentName.startsWith(prefix)) continue\n const keys = environmentName.split('__').map((key, index) => {\n return camelCaseEnvironmentSegment(index === 0 ? key.slice(prefix.length) : key)\n })\n const configKey = keys.join('.')\n if (!Object.hasOwn(config, configKey)) config[configKey] = environmentValue\n }\n return config\n}\n", "import {\n exitProcess, ProcessExitError, type ProcessHost,\n} from '@ariestools/cli-kit'\nimport type { Argv } from 'yargs'\nimport yargs from 'yargs'\nimport { hideBin } from 'yargs/helpers'\n\nexport interface RunYargsApplicationOptions {\n readonly configure: (parser: Argv) => Argv\n readonly host: ProcessHost\n readonly onFailure?: (error: unknown) => Promise<void> | void\n}\n\ninterface CapturedParseOutput {\n error: Error | undefined\n output: string\n}\n\ninterface FailureHandlerResult {\n readonly error?: unknown\n readonly hasError: boolean\n}\n\nasync function invokeFailureHandler(\n handler: RunYargsApplicationOptions['onFailure'],\n error: unknown,\n): Promise<FailureHandlerResult> {\n try {\n await handler?.(error)\n return { hasError: false }\n } catch (failureHandlerError) {\n return { error: failureHandlerError, hasError: true }\n }\n}\n\nfunction reportFailureHandlerError(host: ProcessHost, result: FailureHandlerResult): void {\n if (result.hasError) host.io.error('Error handling application failure:', result.error)\n}\n\n/**\n * Runs a configured Yargs app through the supplied process boundary.\n * Yargs' parse callback prevents its default console and process.exit calls;\n * the adapter then routes the equivalent output and exit through ProcessHost.\n */\nexport async function runYargsApplication({\n configure,\n host,\n onFailure,\n}: RunYargsApplicationOptions): Promise<void> {\n const applicationArguments = hideBin([...host.argv])\n const parser = configure(yargs(applicationArguments))\n const captured: CapturedParseOutput = { error: undefined, output: '' }\n\n try {\n await parser.parseAsync(applicationArguments, {}, (error, _argv, output) => {\n // Yargs 18 reports `null` on success at runtime despite @types/yargs\n // declaring this callback value as `Error | undefined`.\n captured.error = error ?? undefined\n captured.output = output\n })\n } catch (error) {\n if (error instanceof ProcessExitError) throw error\n const failureHandlerResult = await invokeFailureHandler(onFailure, error)\n host.io.error(await parser.getHelp())\n host.io.error()\n host.io.error(error)\n reportFailureHandlerError(host, failureHandlerResult)\n exitProcess(host,
|
|
5
|
-
"mappings": ";AAMA,SAAS,4BAA4B,OAAuB;AAC1D,QAAM,cAAc,UAAU,MAAM,YAAY,KAAK,UAAU,MAAM,YAAY;AACjF,QAAM,aAAa,cAAc,QAAQ,MAAM,YAAY;AAC3D,MAAI,CAAC,WAAW,SAAS,GAAG,KAAK,CAAC,WAAW,SAAS,GAAG,EAAG,QAAO;AAEnE,MAAI,SAAS;AACb,MAAI,uBAAuB;AAC3B,QAAM,iBAAiB,MAAM,KAAK,UAAU;AAC5C,QAAM,QAAQ,iBAAiB,CAAC,EAAE,UAAU;AAC5C,WAAS,QAAQ,OAAO,QAAQ,WAAW,QAAQ,SAAS;AAC1D,QAAI,YAAY,WAAW,OAAO,KAAK;AACvC,QAAI,sBAAsB;AACxB,6BAAuB;AACvB,kBAAY,UAAU,YAAY;AAAA,IACpC;AACA,QAAI,UAAU,MAAM,cAAc,OAAO,cAAc,MAAM;AAC3D,6BAAuB;AAAA,IACzB,WAAW,cAAc,OAAO,cAAc,KAAK;AACjD,gBAAU;AAAA,IACZ;AAAA,EACF;AACA,SAAO;AACT;AAOO,SAAS,yBACd,aACA,QACoC;AACpC,QAAM,SAA6C,CAAC;AACpD,aAAW,CAAC,iBAAiB,gBAAgB,KAAK,OAAO,QAAQ,WAAW,GAAG;AAC7E,QAAI,CAAC,gBAAgB,WAAW,MAAM,EAAG;AACzC,UAAM,OAAO,gBAAgB,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,UAAU;AAC3D,aAAO,4BAA4B,UAAU,IAAI,IAAI,MAAM,OAAO,MAAM,IAAI,GAAG;AAAA,IACjF,CAAC;AACD,UAAM,YAAY,KAAK,KAAK,GAAG;AAC/B,QAAI,CAAC,OAAO,OAAO,QAAQ,SAAS,EAAG,QAAO,SAAS,IAAI;AAAA,EAC7D;AACA,SAAO;AACT;;;ACjDA;AAAA,EACE;AAAA,
|
|
4
|
+
"sourcesContent": ["export type CliEnvironment = Readonly<Record<string, string | undefined>>\n\n/**\n * Matches the segment normalization used by yargs-parser for environment keys.\n * Keeping this local avoids coupling the adapter to an unexported parser helper.\n */\nfunction camelCaseEnvironmentSegment(value: string): string {\n const isCamelCase = value !== value.toLowerCase() && value !== value.toUpperCase()\n const normalized = isCamelCase ? value : value.toLowerCase()\n if (!normalized.includes('-') && !normalized.includes('_')) return normalized\n\n let result = ''\n let isNextCharacterUpper = false\n const leadingHyphens = /^-+/.exec(normalized)\n const start = leadingHyphens?.[0].length ?? 0\n for (let index = start; index < normalized.length; index++) {\n let character = normalized.charAt(index)\n if (isNextCharacterUpper) {\n isNextCharacterUpper = false\n character = character.toUpperCase()\n }\n if (index !== 0 && (character === '-' || character === '_')) {\n isNextCharacterUpper = true\n } else if (character !== '-' && character !== '_') {\n result += character\n }\n }\n return result\n}\n\n/**\n * Converts a prefixed environment into the flat dotted config shape accepted\n * by Yargs. Values remain strings so Yargs applies its normal option typing and\n * coercion after command-line arguments have taken precedence.\n */\nexport function environmentToYargsConfig(\n environment: CliEnvironment,\n prefix: string,\n): Record<string, string | undefined> {\n const config: Record<string, string | undefined> = {}\n for (const [environmentName, environmentValue] of Object.entries(environment)) {\n if (!environmentName.startsWith(prefix)) continue\n const keys = environmentName.split('__').map((key, index) => {\n return camelCaseEnvironmentSegment(index === 0 ? key.slice(prefix.length) : key)\n })\n const configKey = keys.join('.')\n if (!Object.hasOwn(config, configKey)) config[configKey] = environmentValue\n }\n return config\n}\n", "import {\n exitProcess, type FailureExitCodeMapper, ProcessExitError, type ProcessHost, resolveFailureExitCode,\n} from '@ariestools/cli-kit'\nimport type { Argv } from 'yargs'\nimport yargs from 'yargs'\nimport { hideBin } from 'yargs/helpers'\n\nexport interface RunYargsApplicationOptions {\n readonly configure: (parser: Argv) => Argv\n readonly host: ProcessHost\n /**\n * Optional failure policy applied to parser and handler failures alike.\n * The mapper receives the failure origin (`'parse'` for validation\n * failures, `'handler'` for handler or middleware rejections) so exit\n * codes such as `usage` versus `software` need no error sniffing.\n * Returning a number selects the exit code; `undefined`, a thrown mapper,\n * or a result outside the integer range 0\u2013255 retains the default exit\n * code one. Intentional `ProcessExitError` exits are never offered to\n * the mapper.\n */\n readonly mapFailureToExitCode?: FailureExitCodeMapper\n readonly onFailure?: (error: unknown) => Promise<void> | void\n}\n\ninterface CapturedParseOutput {\n error: Error | undefined\n output: string\n}\n\ninterface FailureHandlerResult {\n readonly error?: unknown\n readonly hasError: boolean\n}\n\nasync function invokeFailureHandler(\n handler: RunYargsApplicationOptions['onFailure'],\n error: unknown,\n): Promise<FailureHandlerResult> {\n try {\n await handler?.(error)\n return { hasError: false }\n } catch (failureHandlerError) {\n return { error: failureHandlerError, hasError: true }\n }\n}\n\nfunction reportFailureHandlerError(host: ProcessHost, result: FailureHandlerResult): void {\n if (result.hasError) host.io.error('Error handling application failure:', result.error)\n}\n\n/**\n * Runs a configured Yargs app through the supplied process boundary.\n * Yargs' parse callback prevents its default console and process.exit calls;\n * the adapter then routes the equivalent output and exit through ProcessHost.\n */\nexport async function runYargsApplication({\n configure,\n host,\n mapFailureToExitCode,\n onFailure,\n}: RunYargsApplicationOptions): Promise<void> {\n const applicationArguments = hideBin([...host.argv])\n const parser = configure(yargs(applicationArguments))\n const captured: CapturedParseOutput = { error: undefined, output: '' }\n\n try {\n await parser.parseAsync(applicationArguments, {}, (error, _argv, output) => {\n // Yargs 18 reports `null` on success at runtime despite @types/yargs\n // declaring this callback value as `Error | undefined`.\n captured.error = error ?? undefined\n captured.output = output\n })\n } catch (error) {\n if (error instanceof ProcessExitError) throw error\n const failureHandlerResult = await invokeFailureHandler(onFailure, error)\n host.io.error(await parser.getHelp())\n host.io.error()\n host.io.error(error)\n reportFailureHandlerError(host, failureHandlerResult)\n exitProcess(host, resolveFailureExitCode(mapFailureToExitCode, error, 'handler'))\n }\n\n if (captured.error !== undefined) {\n const failureHandlerResult = await invokeFailureHandler(onFailure, captured.error)\n if (captured.output.length > 0) {\n host.io.error(captured.output)\n } else {\n host.io.error(captured.error)\n }\n reportFailureHandlerError(host, failureHandlerResult)\n exitProcess(host, resolveFailureExitCode(mapFailureToExitCode, captured.error, 'parse'))\n }\n\n if (captured.output.length > 0) {\n host.io.log(captured.output)\n exitProcess(host, 0)\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAMA,SAAS,4BAA4B,OAAuB;AAC1D,QAAM,cAAc,UAAU,MAAM,YAAY,KAAK,UAAU,MAAM,YAAY;AACjF,QAAM,aAAa,cAAc,QAAQ,M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,MAAM,CAAC;AAAA,EACrB;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import { type ProcessHost } from '@ariestools/cli-kit';
|
|
1
|
+
import { type FailureExitCodeMapper, type ProcessHost } from '@ariestools/cli-kit';
|
|
2
2
|
import type { Argv } from 'yargs';
|
|
3
3
|
export interface RunYargsApplicationOptions {
|
|
4
4
|
readonly configure: (parser: Argv) => Argv;
|
|
5
5
|
readonly host: ProcessHost;
|
|
6
|
+
/**
|
|
7
|
+
* Optional failure policy applied to parser and handler failures alike.
|
|
8
|
+
* The mapper receives the failure origin (`'parse'` for validation
|
|
9
|
+
* failures, `'handler'` for handler or middleware rejections) so exit
|
|
10
|
+
* codes such as `usage` versus `software` need no error sniffing.
|
|
11
|
+
* Returning a number selects the exit code; `undefined`, a thrown mapper,
|
|
12
|
+
* or a result outside the integer range 0–255 retains the default exit
|
|
13
|
+
* code one. Intentional `ProcessExitError` exits are never offered to
|
|
14
|
+
* the mapper.
|
|
15
|
+
*/
|
|
16
|
+
readonly mapFailureToExitCode?: FailureExitCodeMapper;
|
|
6
17
|
readonly onFailure?: (error: unknown) => Promise<void> | void;
|
|
7
18
|
}
|
|
8
19
|
/**
|
|
@@ -10,5 +21,5 @@ export interface RunYargsApplicationOptions {
|
|
|
10
21
|
* Yargs' parse callback prevents its default console and process.exit calls;
|
|
11
22
|
* the adapter then routes the equivalent output and exit through ProcessHost.
|
|
12
23
|
*/
|
|
13
|
-
export declare function runYargsApplication({ configure, host, onFailure, }: RunYargsApplicationOptions): Promise<void>;
|
|
24
|
+
export declare function runYargsApplication({ configure, host, mapFailureToExitCode, onFailure, }: RunYargsApplicationOptions): Promise<void>;
|
|
14
25
|
//# sourceMappingURL=runYargsApplication.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runYargsApplication.d.ts","sourceRoot":"","sources":["../../src/runYargsApplication.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"runYargsApplication.d.ts","sourceRoot":"","sources":["../../src/runYargsApplication.ts"],"names":[],"mappings":"AAAA,OAAO,EACQ,KAAK,qBAAqB,EAAoB,KAAK,WAAW,EAC5E,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAIjC,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,IAAI,KAAK,IAAI,CAAA;IAC1C,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;IAC1B;;;;;;;;;OASG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,qBAAqB,CAAA;IACrD,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CAC9D;AA4BD;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,EACxC,SAAS,EACT,IAAI,EACJ,oBAAoB,EACpB,SAAS,GACV,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAqC5C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ariestools/cli-kit-yargs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Yargs adapter for reusable actor command-line applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ariestools",
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@types/yargs": "~17.0.35",
|
|
48
48
|
"yargs": "~18.0.0",
|
|
49
|
-
"@ariestools/cli-kit": "~1.0.
|
|
49
|
+
"@ariestools/cli-kit": "~1.0.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@ariestools/toolchain": "~8.7.21",
|
|
53
53
|
"@ariestools/tsconfig": "~8.7.21",
|
|
54
54
|
"eslint": "~10.7.0",
|
|
55
|
+
"eslint-import-resolver-typescript": "~4.4.5",
|
|
55
56
|
"typescript": "~6.0.3",
|
|
56
57
|
"vite": "~8.1.5",
|
|
57
|
-
"vitest": "~4.1.10"
|
|
58
|
-
"eslint-import-resolver-typescript": "~4.4.5"
|
|
58
|
+
"vitest": "~4.1.10"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=24"
|