Skip to content

Commit a5db0ee

Browse files
committed
build: add autocomplete generation during brew install
1 parent d66bae9 commit a5db0ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.goreleaser.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ brews:
7171
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
7272
directory: Formula
7373

74-
install: bin.install "{{ .ArtifactName }}" => "{{ .Env.CMDNAME }}"
74+
install: |
75+
bin.install "{{ .ArtifactName }}" => "{{ .Env.CMDNAME }}"
76+
77+
chmod 0555, bin/"{{ .Env.CMDNAME }}" # generate_completions_from_executable fails otherwise
78+
generate_completions_from_executable(bin/"{{ .Env.CMDNAME }}", "completion")
79+
7580
homepage: "https://www.mia-platform.eu"
7681
description: "{{ .Env.DESCRIPTION }}"
7782

0 commit comments

Comments
 (0)