argsbarg 5.1.3 → 5.1.4
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
CHANGED
|
@@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [5.1.
|
|
10
|
+
## [5.1.4] - 2026-07-04
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
11
13
|
|
|
14
|
+
- **Template justfile** — export `HOMEBREW_GITHUB_API_TOKEN` from `gh auth token` at top of justfile; removed `scripts/ensure-brew-github-token.sh` and `HOMEBREW_NO_*` suppress vars.
|
|
15
|
+
|
|
16
|
+
## [5.1.3] - 2026-07-04
|
|
12
17
|
|
|
13
18
|
## [5.1.2] - 2026-07-04
|
|
14
19
|
|
|
@@ -605,7 +610,8 @@ const cli = { ... } satisfies CliProgram; // or : CliProgram
|
|
|
605
610
|
- 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`).
|
|
606
611
|
- Imports: use `CliPositional` where needed; replace `CliOptionDef` with `CliOption` or `CliPositional` as appropriate.
|
|
607
612
|
|
|
608
|
-
[Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v5.1.
|
|
613
|
+
[Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v5.1.4...HEAD
|
|
614
|
+
[5.1.4]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.4
|
|
609
615
|
[5.1.3]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.3
|
|
610
616
|
[5.1.2]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.2
|
|
611
617
|
[5.1.1]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.1
|
|
@@ -59,7 +59,7 @@ brew install just bun
|
|
|
59
59
|
just setup
|
|
60
60
|
just install # build + local dev formula
|
|
61
61
|
just reinstall-local # fast binary swap during development
|
|
62
|
-
just install-production # remote tap install (
|
|
62
|
+
just install-production # remote tap install (uses gh auth token)
|
|
63
63
|
just test-release
|
|
64
64
|
```
|
|
65
65
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
HOMEBREW_NO_INSTALL_CLEANUP := "1"
|
|
5
|
-
HOMEBREW_NO_ENV_HINTS := "1"
|
|
3
|
+
export HOMEBREW_GITHUB_API_TOKEN := `gh auth token`
|
|
6
4
|
|
|
7
5
|
cli_key := `bun scripts/print-identity.ts key`
|
|
8
6
|
tap_org := `bun scripts/print-identity.ts tapOrg`
|
|
@@ -61,15 +59,12 @@ install-local: build
|
|
|
61
59
|
@echo ""
|
|
62
60
|
@echo "Next: {{cli_key}} configure"
|
|
63
61
|
|
|
64
|
-
# Remove local dev install, then install from GitHub tap (private release assets need
|
|
62
|
+
# Remove local dev install, then install from GitHub tap (private release assets need gh auth token)
|
|
65
63
|
install-production: uninstall
|
|
66
|
-
#!/usr/bin/env bash
|
|
67
|
-
set -eu -o pipefail
|
|
68
|
-
source scripts/ensure-brew-github-token.sh
|
|
69
64
|
brew tap {{release_repo}} {{tap_git_url}}
|
|
70
65
|
brew install --formula {{release_repo}}/{{cli_key}}
|
|
71
|
-
echo ""
|
|
72
|
-
echo "Next: {{cli_key}} configure"
|
|
66
|
+
@echo ""
|
|
67
|
+
@echo "Next: {{cli_key}} configure"
|
|
73
68
|
|
|
74
69
|
# Alias for backward compatibility
|
|
75
70
|
reinstall: reinstall-local
|
|
@@ -101,9 +96,6 @@ test: check
|
|
|
101
96
|
|
|
102
97
|
# Install release formula from tap and run formula test
|
|
103
98
|
test-release:
|
|
104
|
-
#!/usr/bin/env bash
|
|
105
|
-
set -eu -o pipefail
|
|
106
|
-
source scripts/ensure-brew-github-token.sh
|
|
107
99
|
brew untap {{tap}} 2>/dev/null || true
|
|
108
100
|
mkdir -p {{tap_parent}}
|
|
109
101
|
ln -sfn '{{justfile_directory()}}' {{tap_path}}
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Ensure HOMEBREW_GITHUB_API_TOKEN is set for private GitHub release downloads.
|
|
3
|
-
: "${HOMEBREW_GITHUB_API_TOKEN:=$(gh auth token 2>/dev/null || true)}"
|
|
4
|
-
if [[ -z "${HOMEBREW_GITHUB_API_TOKEN}" ]]; then
|
|
5
|
-
echo "HOMEBREW_GITHUB_API_TOKEN is required to download private GitHub release assets." >&2
|
|
6
|
-
echo "Use: HOMEBREW_GITHUB_API_TOKEN=\"\$(gh auth token)\" (if gh is installed)" >&2
|
|
7
|
-
echo "Or create a PAT at https://github.com/settings/personal-access-tokens/new (Contents read on the tap repo)." >&2
|
|
8
|
-
exit 1
|
|
9
|
-
fi
|
|
10
|
-
export HOMEBREW_GITHUB_API_TOKEN
|