This repository has been archived on 2026-11-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
node-lookup/scripts/completions.sh
T
unkin-agent 8c03ae3b75
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci / release-snapshot (pull_request) Failing after 10m43s
ci / go (pull_request) Failing after 10m44s
ci / actions (pull_request) Failing after 10m45s
ci / ci (pull_request) Failing after 10m45s
ci / goreleaser-check (pull_request) Has been cancelled
Prepare for GitHub migration
2026-11-25 23:57:11 +11:00

11 lines
458 B
Bash
Executable File

#!/usr/bin/env bash
# Generate bash/zsh/fish completions for every tool, named as installed.
set -euo pipefail
mkdir -p completions/bash completions/zsh completions/fish
for entry in node-lookup:. pburl:./cmd/pburl pblastreport:./cmd/pblastreport; do
b=${entry%%:*} pkg=${entry#*:}
go run "$pkg" completion bash >"completions/bash/$b"
go run "$pkg" completion zsh >"completions/zsh/_$b"
go run "$pkg" completion fish >"completions/fish/$b.fish"
done