Skip to content

Commit 3927fc2

Browse files
committed
chore: add brew
1 parent d0d5dd2 commit 3927fc2

File tree

1 file changed

+47
-21
lines changed

1 file changed

+47
-21
lines changed

.goreleaser.yml

Lines changed: 47 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,57 @@
11
# Documentation at http://goreleaser.com
22
builds:
3-
- main: ./cmd/auth0
4-
env:
5-
- CGO_ENABLED=0
6-
goarch:
7-
- amd64
8-
goos:
9-
- darwin
10-
- linux
11-
- windows
12-
binary: auth0
3+
- main: ./cmd/auth0
4+
env:
5+
- CGO_ENABLED=0
6+
goarch:
7+
- amd64
8+
goos:
9+
- darwin
10+
- linux
11+
- windows
12+
binary: auth0
1313
archives:
14-
- replacements:
15-
darwin: Darwin
16-
linux: Linux
17-
windows: Windows
18-
386: i386
19-
amd64: x86_64
20-
files:
21-
- none*
14+
- replacements:
15+
darwin: Darwin
16+
linux: Linux
17+
windows: Windows
18+
386: i386
19+
amd64: x86_64
20+
files:
21+
- none*
2222
checksum:
23-
name_template: 'checksums.txt'
23+
name_template: "checksums.txt"
2424
snapshot:
2525
name_template: "{{ .Tag }}-SNAPSHOT-{{.ShortCommit}}"
2626
changelog:
2727
sort: asc
2828
filters:
2929
exclude:
30-
- '^docs:'
31-
- '^test:'
30+
- "^docs:"
31+
- "^test:"
32+
brews:
33+
-
34+
tap:
35+
owner: auth0
36+
name: homebrew-auth0-cli
37+
commit_author:
38+
name: auth0
39+
email: support@auth0.com
40+
homepage: https://cli.auth0.com
41+
description: Auth0 CLI
42+
install: |
43+
bin.install "auth0"
44+
rm Dir["#{bin}/{auth0-completion.bash,auth0-completion.zsh}"]
45+
system bin/"auth0", "completion", "--shell", "bash"
46+
system bin/"auth0", "completion", "--shell", "zsh"
47+
bash_completion.install "auth0-completion.bash"
48+
zsh_completion.install "auth0-completion.zsh"
49+
(zsh_completion/"_auth0").write <<~EOS
50+
#compdef auth0
51+
_auth0 () {
52+
local e
53+
e=$(dirname ${funcsourcetrace[1]%:*})/auth0-completion.zsh
54+
if [[ -f $e ]]; then source $e; fi
55+
}
56+
EOS
57+
caveats: "Thanks for installing Auth0 CLI"

0 commit comments

Comments
 (0)