goreleaser: add completion
This commit is contained in:
parent
2e1dea059f
commit
8c8b2c900d
1 changed files with 9 additions and 1 deletions
|
@ -1,8 +1,9 @@
|
|||
# Template file for 'goreleaser'
|
||||
pkgname=goreleaser
|
||||
version=1.19.2
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=go
|
||||
build_helper="qemu"
|
||||
go_import_path=github.com/goreleaser/goreleaser
|
||||
go_ldflags="-X main.version=${version}"
|
||||
short_desc="Deliver Go binaries as fast and easily as possible"
|
||||
|
@ -14,4 +15,11 @@ checksum=60e94d9371f7106878441deb006814339e3cf3d7f574d25cb22a9a45ec14939b
|
|||
|
||||
post_install() {
|
||||
vlicense LICENSE.md
|
||||
|
||||
goreleaser=$(find $GOPATH/bin -name goreleaser)
|
||||
|
||||
for shell in bash fish zsh; do
|
||||
vtargetrun ${goreleaser} completion ${shell} > completion.${shell}
|
||||
vcompletion completion.${shell} ${shell}
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue