mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
ghorg: add shell completion
This commit is contained in:
parent
4377f9ceca
commit
eb30af1ec3
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ghorg";
|
||||
|
@ -18,6 +18,14 @@ buildGoModule rec {
|
|||
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd ghorg \
|
||||
--bash <($out/bin/ghorg completion bash) \
|
||||
--fish <($out/bin/ghorg completion fish) \
|
||||
--zsh <($out/bin/ghorg completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Quickly clone an entire org/users repositories into one directory";
|
||||
longDescription = ''
|
||||
|
|
Loading…
Reference in a new issue