Skip to content

Commit

Permalink
build(brew): auto install completion
Browse files Browse the repository at this point in the history
  • Loading branch information
thde committed Sep 3, 2024
1 parent ae16857 commit c19c15f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ brews:
description: "Interact with Nine API resources."
license: "Apache 2.0"

post_install: |
File.write "nctl.bash", system("nctl", "completions", "-c", "bash")
File.write "nctl.zsh", system("nctl", "completions", "-c", "zsh")
File.write "nctl.fish", system("nctl", "completions", "-c", "fish")
bash_completion.install "nctl.bash"
zsh_completion.install "nctl.zsh"
fish_completion.install "nctl.fish"
# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
Expand Down

0 comments on commit c19c15f

Please sign in to comment.