Skip to content

Commit

Permalink
Install completions with Homebrew installation
Browse files Browse the repository at this point in the history
  • Loading branch information
patko committed Apr 11, 2022
1 parent e6c7495 commit 08d64ef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,23 @@ brews:
- tap:
owner: mantil-io
name: homebrew-mantil
description: "Mantil CLI"
homepage: "https://www.mantil.com"
description: "Go Development Toolkit for AWS"
license: MIT
skip_upload: auto
folder: Formula
dependencies:
- name: go
url_template: "releases.mantil.io/{{ .Tag }}/{{ .ArtifactName }}"
install: |-
bin.install "mantil"
# Install shell completions
output = Utils.safe_popen_read("#{bin}/mantil", "completion", "bash")
(bash_completion/"mantil").write output
output = Utils.safe_popen_read("#{bin}/mantil", "completion", "zsh")
(zsh_completion/"_mantil").write output
output = Utils.safe_popen_read("#{bin}/mantil", "completion", "fish")
(fish_completion/"mantil.fish").write output
Binary file added mantil
Binary file not shown.

0 comments on commit 08d64ef

Please sign in to comment.