mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-23 08:01:48 +00:00
Use equivalent and shorter way to generate shell completions
Signed-off-by: Katsunori Tanaka <958690+darklore@users.noreply.github.com>
This commit is contained in:
parent
79dfbec910
commit
ab983c678f
1 changed files with 1 additions and 8 deletions
|
|
@ -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…
Reference in a new issue