Skip to content

Commit

Permalink
Install shell completions in Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
hilli committed Feb 19, 2024
1 parent 9b07856 commit 3e5310d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ bin
.task
share
fyne-cross
dist/
dist/
completions/
9 changes: 7 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ before:
- go mod tidy
# you may remove this if you don't need go generate
# - go generate ./...
- /bin/sh -c "set -e; mkdir -p completions; go run cmd/kefw2/kefw2.go completion bash > completions/kefw2.bash; go run cmd/kefw2/kefw2.go completion zsh > completions/kefw2.zsh; go run cmd/kefw2/kefw2.go completion fish > completions/kefw2.fish"

builds:
- id: kefw2
Expand Down Expand Up @@ -66,15 +67,19 @@ brews:
description: "Command for handling KEF W2 platform speakers (LSX Wireless II (LT)/LS50 Wireless II/LS60 Wireless)"
license: "MIT"
url_template: "https://github.com/hilli/go-kef-w2/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
skip_upload: true # for now. Should be stored in dist folder
skip_upload: false
repository:
owner: hilli
name: homebrew-tap
branch: main

pull_request:
enabled: true
draft: true
extra_install: |-
bash_completion.install "completions/kefw2.bash" => "kefw2"
zsh_completion.install "completions/kefw2.zsh" => "_kefw2"
fish_completion.install "completions/kefw2.fish"
changelog:
sort: asc
filters:
Expand Down

0 comments on commit 3e5310d

Please sign in to comment.