Skip to content

Commit

Permalink
build: add autocomplete generation during brew install
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiola committed Jun 25, 2024
1 parent d54f7ea commit 3663360
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ brews:
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
directory: Formula

install: bin.install "{{ .ArtifactName }}" => "{{ .Env.CMDNAME }}"
install: |
bin.install "{{ .ArtifactName }}" => "{{ .Env.CMDNAME }}"
chmod 0555, bin/"{{ .Env.CMDNAME }}" # generate_completions_from_executable fails otherwise
generate_completions_from_executable(bin/"{{ .Env.CMDNAME }}", "completion")
homepage: "https://www.mia-platform.eu"
description: "{{ .Env.DESCRIPTION }}"

Expand Down

0 comments on commit 3663360

Please sign in to comment.