argsbarg 7.0.0 → 7.0.2
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/CHANGELOG.md +12 -1
- package/package.json +1 -1
- package/src/docs/docs.test.ts +3 -0
- package/src/runtime/capabilities.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [7.0.2] - 2026-08-13
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [7.0.1] - 2026-08-13
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **`configure install` / `uninstall` / `status`** — skip the global required-`appConfig` gate so these subcommands reach their handlers (e.g. `configure uninstall` when config is incomplete).
|
|
18
|
+
|
|
10
19
|
## [7.0.0] - 2026-08-13
|
|
11
20
|
|
|
12
21
|
### Changed
|
|
@@ -938,7 +947,9 @@ const cli = { ... } satisfies CliProgram; // or : CliProgram
|
|
|
938
947
|
- Migrate schemas: rename every `children` property to **`commands`**; move positional definitions to **`CliPositional`** objects on `positionals` and strip `positional` / `argMin` / `argMax` from flag definitions under `options` (flags only carry `name`, `description`, `kind`, and optional `shortName`).
|
|
939
948
|
- Imports: use `CliPositional` where needed; replace `CliOptionDef` with `CliOption` or `CliPositional` as appropriate.
|
|
940
949
|
|
|
941
|
-
[Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v7.0.
|
|
950
|
+
[Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v7.0.2...HEAD
|
|
951
|
+
[7.0.2]: https://github.com/bdombro/bun-argsbarg/releases/tag/v7.0.2
|
|
952
|
+
[7.0.1]: https://github.com/bdombro/bun-argsbarg/releases/tag/v7.0.1
|
|
942
953
|
[7.0.0]: https://github.com/bdombro/bun-argsbarg/releases/tag/v7.0.0
|
|
943
954
|
[6.3.2]: https://github.com/bdombro/bun-argsbarg/releases/tag/v6.3.2
|
|
944
955
|
[6.3.1]: https://github.com/bdombro/bun-argsbarg/releases/tag/v6.3.1
|
package/package.json
CHANGED
package/src/docs/docs.test.ts
CHANGED
|
@@ -247,6 +247,9 @@ test("skipsRequiredAppConfigExit includes docs and config builtins", () => {
|
|
|
247
247
|
const caps = resolveCapabilities(program);
|
|
248
248
|
expect(skipsRequiredAppConfigExit(["docs", "cli"], caps)).toBe(true);
|
|
249
249
|
expect(skipsRequiredAppConfigExit(["configure", "get"], caps)).toBe(true);
|
|
250
|
+
expect(skipsRequiredAppConfigExit(["configure", "install"], caps)).toBe(true);
|
|
251
|
+
expect(skipsRequiredAppConfigExit(["configure", "uninstall"], caps)).toBe(true);
|
|
252
|
+
expect(skipsRequiredAppConfigExit(["configure", "status"], caps)).toBe(true);
|
|
250
253
|
expect(skipsRequiredAppConfigExit(["run"], caps)).toBe(false);
|
|
251
254
|
});
|
|
252
255
|
|
|
@@ -50,12 +50,12 @@ export function reservedCommandNames(caps: CliCapabilities): string[] {
|
|
|
50
50
|
return names;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
/** Commands that may run without required appConfig values (read-only / config introspection). */
|
|
53
|
+
/** Commands that may run without required appConfig values (read-only / config introspection / lifecycle). */
|
|
54
54
|
export function skipsRequiredAppConfigExit(path: string[], caps: CliCapabilities): boolean {
|
|
55
55
|
const root = path[0];
|
|
56
|
-
if (root === "configure" && caps.
|
|
56
|
+
if (root === "configure" && caps.configure) {
|
|
57
57
|
const sub = path[1];
|
|
58
|
-
if (sub === "get" || sub === "set") {
|
|
58
|
+
if (!sub || sub === "get" || sub === "set" || sub === "install" || sub === "uninstall" || sub === "status") {
|
|
59
59
|
return true;
|
|
60
60
|
}
|
|
61
61
|
}
|