goreleaser: add completion

This commit is contained in:
Martin Chlumsky 2023-07-21 13:16:26 -04:00 committed by classabbyamp
parent 2e1dea059f
commit 8c8b2c900d

View file

@ -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
}