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
11 lines
458 B
Bash
Executable File
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
|