kops: enable bash and zsh completion

This commit is contained in:
Benjamin Staffin 2017-05-23 16:13:23 -04:00
parent 964027aaa1
commit 3cf55f070d
No known key found for this signature in database
GPG Key ID: A490C0134E09AF4A

View File

@ -28,6 +28,13 @@ buildGoPackage rec {
go-bindata -o federation/model/bindata.go -pkg model -prefix federation/model federation/model/...)
'';
postInstall = ''
mkdir -p $bin/share/bash-completion/completions
mkdir -p $bin/share/zsh/site-functions
$bin/bin/kops completion bash > $bin/share/bash-completion/completions/kops
$bin/bin/kops completion zsh > $bin/share/zsh/site-functions/_kops
'';
meta = with stdenv.lib; {
description = "Easiest way to get a production Kubernetes up and running";
homepage = https://github.com/kubernetes/kops;