argsbarg 3.3.8 → 3.3.9
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 +8 -1
- package/package.json +1 -1
- package/src/builtins/install.ts +25 -11
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.3.9] - 2026-06-21
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **`install` notes** — `install --update` is under "Upgrade to latest release" (not "Refresh after upgrading"); shown only when `install.updateGetLatest` is set.
|
|
15
|
+
|
|
10
16
|
## [3.3.8] - 2026-06-21
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -298,7 +304,8 @@ const cli = { ... } satisfies CliProgram; // or : CliProgram
|
|
|
298
304
|
- 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`).
|
|
299
305
|
- Imports: use `CliPositional` where needed; replace `CliOptionDef` with `CliOption` or `CliPositional` as appropriate.
|
|
300
306
|
|
|
301
|
-
[Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v3.3.
|
|
307
|
+
[Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v3.3.9...HEAD
|
|
308
|
+
[3.3.9]: https://github.com/bdombro/bun-argsbarg/releases/tag/v3.3.9
|
|
302
309
|
[3.3.8]: https://github.com/bdombro/bun-argsbarg/releases/tag/v3.3.8
|
|
303
310
|
[3.3.7]: https://github.com/bdombro/bun-argsbarg/releases/tag/v3.3.7
|
|
304
311
|
[3.3.6]: https://github.com/bdombro/bun-argsbarg/releases/tag/v3.3.6
|
package/package.json
CHANGED
package/src/builtins/install.ts
CHANGED
|
@@ -95,20 +95,34 @@ export function installBuiltinOptions(root: CliProgram): CliOption[] {
|
|
|
95
95
|
/** Builds the `install` built-in command. */
|
|
96
96
|
export function cliBuiltinInstallCommand(root: CliProgram): CliLeaf {
|
|
97
97
|
const app = root.key;
|
|
98
|
+
const notesLines = [
|
|
99
|
+
"First-time setup:",
|
|
100
|
+
` ${app} install --all --yes`,
|
|
101
|
+
"",
|
|
102
|
+
"Refresh after upgrading:",
|
|
103
|
+
` ${app} install --reinstall`,
|
|
104
|
+
];
|
|
105
|
+
if (resolveCapabilities(root).update) {
|
|
106
|
+
notesLines.push(
|
|
107
|
+
"",
|
|
108
|
+
"Upgrade to latest release:",
|
|
109
|
+
` ${app} install --update`,
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
notesLines.push(
|
|
113
|
+
"",
|
|
114
|
+
"See what is installed:",
|
|
115
|
+
` ${app} install --status`,
|
|
116
|
+
"",
|
|
117
|
+
"Remove everything installed with --all:",
|
|
118
|
+
` ${app} install --uninstall --all --yes`,
|
|
119
|
+
"",
|
|
120
|
+
"Use --dry to preview changes, --json for machine-readable output.",
|
|
121
|
+
);
|
|
98
122
|
return {
|
|
99
123
|
key: "install",
|
|
100
124
|
description: "Install the binary, shell completions, agent skills, and MCP config to your user environment.",
|
|
101
|
-
notes:
|
|
102
|
-
"First-time setup:\n" +
|
|
103
|
-
` ${app} install --all --yes\n\n` +
|
|
104
|
-
"Refresh after upgrading:\n" +
|
|
105
|
-
` ${app} install --reinstall\n` +
|
|
106
|
-
` ${app} install --update\n\n` +
|
|
107
|
-
"See what is installed:\n" +
|
|
108
|
-
` ${app} install --status\n\n` +
|
|
109
|
-
"Remove everything installed with --all:\n" +
|
|
110
|
-
` ${app} install --uninstall --all --yes\n\n` +
|
|
111
|
-
"Use --dry to preview changes, --json for machine-readable output.",
|
|
125
|
+
notes: notesLines.join("\n"),
|
|
112
126
|
options: installBuiltinOptions(root),
|
|
113
127
|
handler: () => {},
|
|
114
128
|
};
|