1c0e47167c
Moves node-lookup to IUCLabs/node-lookup on GitHub; it must carry no internal hostnames or Woodpecker release. - Loads PuppetDB, Puppetboard and domain from config (flags > env > ~/.config > /etc) for all 3 tools; errors name the config paths - Ships packaging/config.example.yaml as an RPM doc - Rewrites .goreleaser.yaml: raw binaries + amd64 RPM with completions, signed checksums - Adds GitHub CI/release workflows, CODEOWNERS, zizmor config, README - Makes patch/minor/major draft a GitHub release; make rpm runs a goreleaser snapshot - Removes the Woodpecker release pipeline, nfpm.yaml and build-rpm.sh Reviewed-on: #24 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
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
|