mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
github-cli: install shell completion
This commit is contained in:
parent
0960dbd19e
commit
74ef0f14ca
1 changed files with 13 additions and 1 deletions
|
@ -1,9 +1,10 @@
|
||||||
# Template file for 'github-cli'
|
# Template file for 'github-cli'
|
||||||
pkgname=github-cli
|
pkgname=github-cli
|
||||||
version=1.0.0
|
version=1.0.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="cli-${version}"
|
wrksrc="cli-${version}"
|
||||||
build_style=go
|
build_style=go
|
||||||
|
build_helper=qemu
|
||||||
go_import_path="github.com/cli/cli/cmd/gh"
|
go_import_path="github.com/cli/cli/cmd/gh"
|
||||||
go_ldflags="-X github.com/cli/cli/command.Version=v${version}"
|
go_ldflags="-X github.com/cli/cli/command.Version=v${version}"
|
||||||
short_desc="GitHub CLI tool"
|
short_desc="GitHub CLI tool"
|
||||||
|
@ -22,6 +23,17 @@ pre_build() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_build() {
|
||||||
|
gh=$(find $GOPATH/bin -name gh)
|
||||||
|
for shell in bash fish zsh; do
|
||||||
|
vtargetrun $gh completion -s $shell > github-cli.$shell
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
||||||
|
for shell in bash fish zsh; do
|
||||||
|
vcompletion github-cli.$shell $shell gh
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue