Skip to content

Commit

Permalink
Merge pull request #3976 from darklore/brew-completion
Browse files Browse the repository at this point in the history
Use equivalent and shorter way to generate shell completions
  • Loading branch information
hiddeco committed Jun 14, 2023
2 parents 79dfbec + ab983c6 commit ddcc301
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 ddcc301

Please sign in to comment.