bin/: add zarf

zarf v0.81.0 (current latest), a single static binary for offline/airgapped
Kubernetes. Both Linux release assets verified to resolve; install is
idempotent via the ~/.local/bin/.versions stamp.

Also drops a stray leading space from install_opencode's argument line.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-13 13:10:11 -04:00
co-authored by Claude Opus 4.8
parent 70b049625a
commit 6dc34c5dbb
2 changed files with 17 additions and 2 deletions
+14
View File
@@ -156,6 +156,19 @@ install_opencode() {
mark_version opencode "$ver"
}
# zarf — a DevSecOps tool for Offline and Airgapped Kubernetes (single static binary).
install_zarf() {
ver=v0.81.0
have_version zarf "$ver" && { fsay "zarf $ver already installed."; return 0; }
case "$DEB" in
amd64) _zarf_arch=amd64 ;;
*) _zarf_arch=arm64 ;;
esac
install_raw_bin \
"https://github.com/zarf-dev/zarf/releases/download/$ver/zarf_${ver}_Linux_$_zarf_arch" zarf
mark_version zarf "$ver"
}
# task — go-task, the Taskfile.yml task runner. Binary is at the archive root.
install_task() {
ver=v3.52.0
@@ -194,5 +207,6 @@ install_task
install_terragrunt
install_1p
install_opencode
install_zarf
fsay "Done. Tools in $BIN_DIR (added to PATH by zsh/zshrc)."