Skip to content

build: include shell completion scripts in GoReleaser archives#73

Merged
Siddhant-K-code merged 1 commit into
mainfrom
chore/goreleaser-completions
May 2, 2026
Merged

build: include shell completion scripts in GoReleaser archives#73
Siddhant-K-code merged 1 commit into
mainfrom
chore/goreleaser-completions

Conversation

@Siddhant-K-code

Copy link
Copy Markdown
Owner

Picks up the GoReleaser and script additions from #35 that weren't covered by #68.

Changes

  • scripts/completions.sh — generates completions/distill.{bash,zsh,fish,powershell} using go run . completion
  • .goreleaser.yml — runs the script as a pre-hook and bundles completions/* in release archives
  • .gitignore — excludes the generated completions/ directory

Users installing via a release archive will get completion scripts alongside the binary.

Generates bash/zsh/fish/powershell completions via scripts/completions.sh
as a GoReleaser pre-hook and bundles them in release archives under
completions/. Adds completions/ to .gitignore since the directory is
generated at release time.

Co-authored-by: Ona <[email protected]>
@Siddhant-K-code Siddhant-K-code merged commit 2e1cc24 into main May 2, 2026
0 of 2 checks passed
@Siddhant-K-code Siddhant-K-code deleted the chore/goreleaser-completions branch May 2, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant