Skip to content

Commit 3c26472

Browse files
committed
fix(ci): update usage CLI to 3.0.0 and fix archive path
usage v2.18.2+ changed tar archive structure — binary is now at root instead of usage/bin/usage.
1 parent b73dae5 commit 3c26472

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,14 @@ jobs:
195195
- name: Generate shell completions
196196
run: |
197197
set -euo pipefail
198-
USAGE_VERSION="2.18.2"
198+
USAGE_VERSION="3.0.0"
199199
curl --fail -sL "https://github.com/jdx/usage/releases/download/v${USAGE_VERSION}/usage-x86_64-unknown-linux-gnu.tar.gz" -o usage.tar.gz
200200
tar xzf usage.tar.gz
201-
chmod +x usage/bin/usage
201+
chmod +x usage
202202
mkdir -p completions
203-
usage/bin/usage generate completion bash exfig -f exfig.usage.kdl > completions/exfig.bash
204-
usage/bin/usage generate completion zsh exfig -f exfig.usage.kdl > completions/_exfig
205-
usage/bin/usage generate completion fish exfig -f exfig.usage.kdl > completions/exfig.fish
203+
./usage generate completion bash exfig -f exfig.usage.kdl > completions/exfig.bash
204+
./usage generate completion zsh exfig -f exfig.usage.kdl > completions/_exfig
205+
./usage generate completion fish exfig -f exfig.usage.kdl > completions/exfig.fish
206206
for f in completions/exfig.bash completions/_exfig completions/exfig.fish; do
207207
if [[ ! -s "$f" ]]; then
208208
echo "::error::Generated completion file is empty: $f"

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ git-cliff = "2.10.1" # Changelog generation
5151
pkl = "0.31.0" # Configuration language (for hk.pkl)
5252

5353
# --- CLI Spec ---
54-
usage = "2.18.2" # CLI spec → shell completions, docs, man pages
54+
usage = "3.0.0" # CLI spec → shell completions, docs, man pages
5555

5656

5757
# =============================================================================

0 commit comments

Comments
 (0)