pv-migrate: add shell completions
Fix Lint
This commit is contained in:
parent
dd13cb89dd
commit
4692357c3e
1 changed files with 13 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "pv-migrate";
|
||||
|
@ -23,11 +23,22 @@ buildGoModule rec {
|
|||
"-X main.date=1970-01-01-00:00:01"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd pv-migrate \
|
||||
--bash <($out/bin/pv-migrate completion bash) \
|
||||
--fish <($out/bin/pv-migrate completion fish) \
|
||||
--zsh <($out/bin/pv-migrate completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "CLI tool to easily migrate Kubernetes persistent volumes ";
|
||||
homepage = "https://github.com/utkuozdemir/pv-migrate";
|
||||
changelog = "https://github.com/utkuozdemir/pv-migrate/releases/tag/${version}";
|
||||
license = licenses.afl20;
|
||||
maintainers = [ maintainers.ivankovnatsky ];
|
||||
maintainers = with lib.maintainers; [ ivankovnatsky qjoly ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue