From ef660c4057fe168e76d0b59c3ceecb5662a614e0 Mon Sep 17 00:00:00 2001 From: "Jorge L. Fatta" Date: Sat, 6 Mar 2021 23:04:21 -0300 Subject: [PATCH] fix: completion from install formula --- .goreleaser.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 4e348435f..e85030aeb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -41,18 +41,9 @@ brews: homepage: https://cli.auth0.com description: Auth0 CLI install: | - bin.install "auth0" - rm Dir["#{bin}/{auth0-completion.bash,auth0-completion.zsh}"] - system bin/"auth0", "completion", "bash" - system bin/"auth0", "completion", "zsh" - bash_completion.install "auth0-completion.bash" - zsh_completion.install "auth0-completion.zsh" - (zsh_completion/"_auth0").write <<~EOS - #compdef auth0 - _auth0 () { - local e - e=$(dirname ${funcsourcetrace[1]%:*})/auth0-completion.zsh - if [[ -f $e ]]; then source $e; fi - } - EOS + bin.install "auth0" + + (bash_completion/"auth0").write `#{bin}/auth0 completion bash` + (fish_completion/"auth0.fish").write `#{bin}/auth0 completion fish` + (zsh_completion/"_auth0").write `#{bin}/auth0 completion zsh` caveats: "Thanks for installing Auth0 CLI"