Skip to content

Commit c215cff

Browse files
cbleckerjirfag
authored andcommitted
Add bash completion to homebrew formula (#676)
1 parent 4495f89 commit c215cff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.goreleaser.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,10 @@ brew:
6767
folder: Formula
6868
homepage: https://golangci.com
6969
description: Fast linters runner for Go.
70+
install: |
71+
bin.install "golangci-lint"
72+
output = Utils.popen_read("#{bin}/golangci-lint completion bash")
73+
(bash_completion/"golangci-lint").write output
74+
prefix.install_metafiles
7075
test: |
7176
system "#{bin}/golangci-lint --version"

0 commit comments

Comments
 (0)