Skip to content

Commit

Permalink
fix: completion from install formula
Browse files Browse the repository at this point in the history
  • Loading branch information
jfatta committed Mar 7, 2021
1 parent 5afa13e commit ef660c4
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ef660c4

Please sign in to comment.