Skip to content

Commit

Permalink
Merge pull request #157 from ecordell/brew-completion
Browse files Browse the repository at this point in the history
install completions when installing via brew
  • Loading branch information
jzelinskie committed Oct 1, 2021
2 parents 3740c6c + fd42ad4 commit 9068372
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ brews:
system "go build --ldflags \"-s -w -X github.com/authzed/spicedb/internal/version.Version=$(git describe --always --abbrev=7 --dirty)\" ./cmd/spicedb"
end
bin.install "spicedb"
(bash_completion/"spicedb").write Utils.safe_popen_read("#{bin}/spicedb", "completion", "bash")
(zsh_completion/"_spicedb").write Utils.safe_popen_read("#{bin}/spicedb", "completion", "zsh")
(fish_completion/"spicedb.fish").write Utils.safe_popen_read("#{bin}/spicedb", "completion", "fish")
checksum:
name_template: "checksums.txt"
snapshot:
Expand Down

0 comments on commit 9068372

Please sign in to comment.