Skip to content

Commit 3663360

Browse files
committed
build: add autocomplete generation during brew install
1 parent d54f7ea commit 3663360

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
@@ -70,7 +70,12 @@ brews:
7070
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
7171
directory: Formula
7272

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

0 commit comments

Comments
 (0)