1
0
mirror of synced 2026-03-14 07:26:57 +00:00

Merge pull request #3976 from darklore/brew-completion

Use equivalent and shorter way to generate shell completions
This commit is contained in:
Hidde Beydals
2023-06-14 22:00:11 +02:00
committed by GitHub

View File

@@ -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: