Skip to content

Commit

Permalink
Use equivalent and shorter way to generate shell completions
Browse files Browse the repository at this point in the history
Signed-off-by: Katsunori Tanaka <[email protected]>
  • Loading branch information
darklore committed Jun 14, 2023
1 parent 063c5ee commit 576930c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,7 @@ brews:
install: |
bin.install "flux"
bash_output = Utils.safe_popen_read(bin/"flux", "completion", "bash")
(bash_completion/"flux").write bash_output
zsh_output = Utils.safe_popen_read(bin/"flux", "completion", "zsh")
(zsh_completion/"_flux").write zsh_output
fish_output = Utils.safe_popen_read(bin/"flux", "completion", "fish")
(fish_completion/"flux.fish").write fish_output
generate_completions_from_executable(bin/"flux", "completion")
test: |
system "#{bin}/flux --version"
publishers:
Expand Down

0 comments on commit 576930c

Please sign in to comment.