hetzner-kube: support for bash completion
This commit is contained in:
parent
13b5c8a4db
commit
a226183b32
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "hetzner-kube";
|
||||
|
@ -20,6 +20,17 @@ buildGoModule rec {
|
|||
-X github.com/xetys/hetzner-kube/cmd.version=${version}
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
$out/bin/hetzner-kube completion bash > hetzner-kube
|
||||
$out/bin/hetzner-kube completion zsh > _hetzner-kube
|
||||
installShellCompletion --zsh _hetzner-kube
|
||||
installShellCompletion --bash hetzner-kube
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A CLI tool for provisioning Kubernetes clusters on Hetzner Cloud";
|
||||
homepage = "https://github.com/xetys/hetzner-kube";
|
||||
|
|
Loading…
Reference in New Issue