Skip to content

Commit

Permalink
update goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny0826 committed Nov 17, 2020
1 parent d96e843 commit fa9c3cf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ brews:
# Packages your package depends on.
dependencies:
- name: git
- name: go

# So you can `brew test` your formula.
# Default is empty.
Expand All @@ -57,3 +56,11 @@ brews:
# Default is 'bin.install "program"'.
install: |
bin.install "kubecm"
# Install bash completion
output = Utils.safe_popen_read("#{bin}/kubecm", "completion", "bash")
(bash_completion/"kubecm").write output
# Install zsh completion
output = Utils.safe_popen_read("#{bin}/kubecm", "completion", "zsh")
(zsh_completion/"_kubecm").write output

0 comments on commit fa9c3cf

Please sign in to comment.