Skip to content

Commit

Permalink
releaser/tap: Install completions (#540)
Browse files Browse the repository at this point in the history
Sets up the Homebrew tap to also install shell completions
generated from the `gs` executable.
  • Loading branch information
abhinav authored Jan 3, 2025
1 parent 3226446 commit e595138
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Added-20250103-052535.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Added
body: The Homebrew tap will now install shell completions automatically.
time: 2025-01-03T05:25:35.890095-08:00
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ brews:
description: "A tool for stacking Git branches."
license: "GPL-3.0-or-later"
skip_upload: auto
install: |
bin.install "gs"
generate_completions_from_executable(bin/"gs", "shell", "completion")
test: |
system "#{bin}/gs --version"
Expand Down

0 comments on commit e595138

Please sign in to comment.