mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
kubernetes-kind: set up shell completions.
This commit is contained in:
parent
abba9a5b92
commit
625c5077ec
1 changed files with 16 additions and 1 deletions
|
@ -1,9 +1,10 @@
|
||||||
# Template file for 'kubernetes-kind'
|
# Template file for 'kubernetes-kind'
|
||||||
pkgname=kubernetes-kind
|
pkgname=kubernetes-kind
|
||||||
version=0.10.0
|
version=0.10.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="kind-${version}"
|
wrksrc="kind-${version}"
|
||||||
build_style=go
|
build_style=go
|
||||||
|
build_helper=qemu
|
||||||
go_import_path="sigs.k8s.io/kind"
|
go_import_path="sigs.k8s.io/kind"
|
||||||
short_desc="Kind is a tool for running local Kubernetes clusters using Docker"
|
short_desc="Kind is a tool for running local Kubernetes clusters using Docker"
|
||||||
maintainer="Andy Cobaugh <andrew.cobaugh@gmail.com>"
|
maintainer="Andy Cobaugh <andrew.cobaugh@gmail.com>"
|
||||||
|
@ -11,3 +12,17 @@ license="Apache-2.0"
|
||||||
homepage="https://kind.sigs.k8s.io/"
|
homepage="https://kind.sigs.k8s.io/"
|
||||||
distfiles="https://github.com/kubernetes-sigs/kind/archive/v${version}.tar.gz"
|
distfiles="https://github.com/kubernetes-sigs/kind/archive/v${version}.tar.gz"
|
||||||
checksum=@e5511659e3e1735531d4845405782d869d4fb425b545ea89151fd76208a12a49
|
checksum=@e5511659e3e1735531d4845405782d869d4fb425b545ea89151fd76208a12a49
|
||||||
|
_completions="bash zsh fish"
|
||||||
|
|
||||||
|
post_build() {
|
||||||
|
local cli=$(find $GOPATH/bin -name kind)
|
||||||
|
for shell in $_completions; do
|
||||||
|
vtargetrun $cli completion $shell > "kind.${shell}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
for shell in $_completions; do
|
||||||
|
vcompletion "kind.${shell}" $shell kind
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue