kapp: install completion
This commit is contained in:
parent
5a41d0d5a0
commit
cc563d8432
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "kapp";
|
pname = "kapp";
|
||||||
version = "0.36.0";
|
version = "0.36.0";
|
||||||
@ -14,6 +14,15 @@ buildGoModule rec {
|
|||||||
|
|
||||||
subPackages = [ "cmd/kapp" ];
|
subPackages = [ "cmd/kapp" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
for shell in bash fish zsh; do
|
||||||
|
$out/bin/kapp completion $shell > kapp.$shell
|
||||||
|
installShellCompletion kapp.$shell
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "CLI tool that encourages Kubernetes users to manage bulk resources with an application abstraction for grouping";
|
description = "CLI tool that encourages Kubernetes users to manage bulk resources with an application abstraction for grouping";
|
||||||
homepage = "https://get-kapp.io";
|
homepage = "https://get-kapp.io";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user