From ab983c678f703fcdddae33667f1ef7488a5a3f98 Mon Sep 17 00:00:00 2001 From: Katsunori Tanaka <958690+darklore@users.noreply.github.com> Date: Wed, 14 Jun 2023 23:58:48 +0900 Subject: [PATCH] Use equivalent and shorter way to generate shell completions Signed-off-by: Katsunori Tanaka <958690+darklore@users.noreply.github.com> --- .goreleaser.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 423fcea669..df71dd3be7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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: