Merge pull request #3976 from darklore/brew-completion

Use equivalent and shorter way to generate shell completions
pull/3982/head
Hidde Beydals 2 years ago committed by GitHub
commit ddcc301ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,14 +83,7 @@ brews:
install: | install: |
bin.install "flux" bin.install "flux"
bash_output = Utils.safe_popen_read(bin/"flux", "completion", "bash") generate_completions_from_executable(bin/"flux", "completion")
(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
test: | test: |
system "#{bin}/flux --version" system "#{bin}/flux --version"
publishers: publishers:

Loading…
Cancel
Save