mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
jira-cli-go: add fish completions (#339509)
This commit is contained in:
commit
2565ca31fe
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub, less, more, installShellFiles, testers, jira-cli-go, nix-update-script }:
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, less, more, installShellFiles, testers, jira-cli-go, nix-update-script }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "jira-cli-go";
|
pname = "jira-cli-go";
|
||||||
@ -34,9 +34,10 @@ buildGoModule rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd jira \
|
installShellCompletion --cmd jira \
|
||||||
--bash <($out/bin/jira completion bash) \
|
--bash <($out/bin/jira completion bash) \
|
||||||
|
--fish <($out/bin/jira completion fish) \
|
||||||
--zsh <($out/bin/jira completion zsh)
|
--zsh <($out/bin/jira completion zsh)
|
||||||
|
|
||||||
$out/bin/jira man --generate --output man
|
$out/bin/jira man --generate --output man
|
||||||
|
Loading…
Reference in New Issue
Block a user