-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: brew install 🍻 #114
Merged
Merged
feat: brew install 🍻 #114
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3927fc2
chore: add brew
jfatta 212de18
set a GH token for goreleaser
jfatta 4810919
Merge branch 'main' into spike-homebrew
jfatta 8d31831
set tap name
jfatta fb91069
fix: skip login for completion command
jfatta ed726ab
fix: brew completion step
jfatta 490f84b
update readme
jfatta 5afa13e
fix completion props
jfatta ef660c4
fix: completion from install formula
jfatta ccd41f1
Merge branch 'main' into spike-homebrew
jfatta 92a1c6c
Merge branch 'main' into spike-homebrew
jfatta 1b88ad9
Merge branch 'main' into spike-homebrew
Widcket 37a369e
Apply suggestions from code review
jfatta d89d30e
Update README.md
jfatta ade2335
Merge branch 'main' into spike-homebrew
Widcket File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,57 @@ | ||
# Documentation at http://goreleaser.com | ||
builds: | ||
- main: ./cmd/auth0 | ||
env: | ||
- CGO_ENABLED=0 | ||
goarch: | ||
- amd64 | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
binary: auth0 | ||
- main: ./cmd/auth0 | ||
env: | ||
- CGO_ENABLED=0 | ||
goarch: | ||
- amd64 | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
binary: auth0 | ||
archives: | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
files: | ||
- none* | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
files: | ||
- none* | ||
checksum: | ||
name_template: 'checksums.txt' | ||
name_template: "checksums.txt" | ||
snapshot: | ||
name_template: "{{ .Tag }}-SNAPSHOT-{{.ShortCommit}}" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
- "^docs:" | ||
- "^test:" | ||
brews: | ||
- | ||
tap: | ||
owner: auth0 | ||
name: homebrew-auth0-cli | ||
commit_author: | ||
name: auth0 | ||
email: [email protected] | ||
homepage: https://cli.auth0.com | ||
description: Auth0 CLI | ||
jfatta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
install: | | ||
bin.install "auth0" | ||
rm Dir["#{bin}/{auth0-completion.bash,auth0-completion.zsh}"] | ||
system bin/"auth0", "completion", "--shell", "bash" | ||
system bin/"auth0", "completion", "--shell", "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 | ||
caveats: "Thanks for installing Auth0 CLI" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to allow goreleaser changes on external repository https://github.com/auth0/homebrew-auth0-cli
https://github.com/goreleaser/goreleaser/blob/68091726b31215473f0629d10e39a7e46fd0d82e/scripts/entrypoint.sh#L8-L11