@dbx-tools/cli-args 0.9.129 → 0.9.132
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 +7 -6
- package/index.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
# @dbx-tools/cli-args
|
|
2
2
|
|
|
3
|
-
Generate Commander flags
|
|
4
|
-
|
|
5
|
-
package.
|
|
3
|
+
Generate Commander flags, help text, parsed values, and argv from one Zod
|
|
4
|
+
object schema without installing the full `dbx` package.
|
|
6
5
|
|
|
7
|
-
## Bind
|
|
6
|
+
## Bind and parse arguments
|
|
8
7
|
|
|
9
8
|
```ts
|
|
10
9
|
import { addArgs, parseArgs } from "@dbx-tools/cli-args";
|
|
@@ -28,7 +27,7 @@ should hide its default. A field with `helpDefault: false` defers layered
|
|
|
28
27
|
configuration loading until `parseArgs`, so rendering `--help` does not resolve
|
|
29
28
|
that value.
|
|
30
29
|
|
|
31
|
-
## Serialize
|
|
30
|
+
## Serialize options back to argv
|
|
32
31
|
|
|
33
32
|
```ts
|
|
34
33
|
import { serializeArgs } from "@dbx-tools/cli-args";
|
|
@@ -42,4 +41,6 @@ values. Boolean false becomes `--no-*`, arrays become repeated flags, and
|
|
|
42
41
|
listener addresses use the shared listen-address format.
|
|
43
42
|
|
|
44
43
|
Consuming commands define their schemas. This package binds Commander, help,
|
|
45
|
-
and argv serialization.
|
|
44
|
+
and argv serialization. Use Commander directly when a command doesn't use a
|
|
45
|
+
Zod object schema or layered [@dbx-tools/core](../../node/core)
|
|
46
|
+
configuration.
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/cli-args";
|
|
6
|
-
export const PACKAGE_VERSION = "0.9.
|
|
6
|
+
export const PACKAGE_VERSION = "0.9.132";
|
|
7
7
|
export * as args from "./src/args.ts";
|
|
8
8
|
export type { CliArgsOptions, CliArgMeta, CliObjectSchema, ArgumentSource } from "./src/args.ts";
|
|
9
9
|
export * from "./exports.ts";
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const PACKAGE_IDENTIFIER = "@dbx-tools/cli-args";
|
|
2
|
-
export declare const PACKAGE_VERSION = "0.9.
|
|
2
|
+
export declare const PACKAGE_VERSION = "0.9.132";
|
|
3
3
|
export * as args from "./src/args.ts";
|
|
4
4
|
export type { CliArgsOptions, CliArgMeta, CliObjectSchema, ArgumentSource } from "./src/args.ts";
|
|
5
5
|
export * from "./exports.ts";
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Regenerated from the exporting modules in ./src.
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/cli-args";
|
|
5
|
-
export const PACKAGE_VERSION = "0.9.
|
|
5
|
+
export const PACKAGE_VERSION = "0.9.132";
|
|
6
6
|
export * as args from "./src/args.js";
|
|
7
7
|
export * from "./exports.js";
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwyQ0FBMkM7QUFDM0MsbURBQW1EO0FBQ25ELHdFQUF3RTtBQUV4RSxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyxxQkFBcUIsQ0FBQztBQUN4RCxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsU0FBUyxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxJQUFJLE1BQU0sZUFBZSxDQUFDO0FBRXRDLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gR0VORVJBVEVEIGJ5IHByb2plbiB3YXRjaCAtIERPIE5PVCBFRElULlxuLy8gUmVnZW5lcmF0ZWQgZnJvbSB0aGUgZXhwb3J0aW5nIG1vZHVsZXMgaW4gLi9zcmMuXG4vLyBIYW5kIGVkaXRzIGFyZSBvdmVyd3JpdHRlbiBvbiB0aGUgbmV4dCB3YXRjaDsgdGhpcyBmaWxlIGlzIHJlYWQtb25seS5cblxuZXhwb3J0IGNvbnN0IFBBQ0tBR0VfSURFTlRJRklFUiA9IFwiQGRieC10b29scy9jbGktYXJnc1wiO1xuZXhwb3J0IGNvbnN0IFBBQ0tBR0VfVkVSU0lPTiA9IFwiMC45LjEzMlwiO1xuZXhwb3J0ICogYXMgYXJncyBmcm9tIFwiLi9zcmMvYXJncy50c1wiO1xuZXhwb3J0IHR5cGUgeyBDbGlBcmdzT3B0aW9ucywgQ2xpQXJnTWV0YSwgQ2xpT2JqZWN0U2NoZW1hLCBBcmd1bWVudFNvdXJjZSB9IGZyb20gXCIuL3NyYy9hcmdzLnRzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9leHBvcnRzLnRzXCI7XG4iXX0=
|
package/package.json
CHANGED
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"typescript": "^5.9.3"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@dbx-tools/core": "^0.9.
|
|
27
|
-
"@dbx-tools/shared-core": "^0.9.
|
|
26
|
+
"@dbx-tools/core": "^0.9.132",
|
|
27
|
+
"@dbx-tools/shared-core": "^0.9.132",
|
|
28
28
|
"commander": "^15.0.0",
|
|
29
29
|
"zod": "4.3.6"
|
|
30
30
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"./package.json": "./package.json"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"version": "0.9.
|
|
53
|
+
"version": "0.9.132",
|
|
54
54
|
"types": "./lib/index.d.ts",
|
|
55
55
|
"dbxToolsConfig": {
|
|
56
56
|
"tags": [
|