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"