Skip to content

Commit ef660c4

Browse files
committed
fix: completion from install formula
1 parent 5afa13e commit ef660c4

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.goreleaser.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,9 @@ brews:
4141
homepage: https://cli.auth0.com
4242
description: Auth0 CLI
4343
install: |
44-
bin.install "auth0"
45-
rm Dir["#{bin}/{auth0-completion.bash,auth0-completion.zsh}"]
46-
system bin/"auth0", "completion", "bash"
47-
system bin/"auth0", "completion", "zsh"
48-
bash_completion.install "auth0-completion.bash"
49-
zsh_completion.install "auth0-completion.zsh"
50-
(zsh_completion/"_auth0").write <<~EOS
51-
#compdef auth0
52-
_auth0 () {
53-
local e
54-
e=$(dirname ${funcsourcetrace[1]%:*})/auth0-completion.zsh
55-
if [[ -f $e ]]; then source $e; fi
56-
}
57-
EOS
44+
bin.install "auth0"
45+
46+
(bash_completion/"auth0").write `#{bin}/auth0 completion bash`
47+
(fish_completion/"auth0.fish").write `#{bin}/auth0 completion fish`
48+
(zsh_completion/"_auth0").write `#{bin}/auth0 completion zsh`
5849
caveats: "Thanks for installing Auth0 CLI"

0 commit comments

Comments
 (0)