mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
jira-cli-go: add fish completions
Co-authored-by: Nikolay Korotkiy <sikmir@disroot.org>
This commit is contained in:
parent
f43535dd8e
commit
0b8ac40f56
@ -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 {
|
||||
pname = "jira-cli-go";
|
||||
@ -34,9 +34,10 @@ buildGoModule rec {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
postInstall = ''
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd jira \
|
||||
--bash <($out/bin/jira completion bash) \
|
||||
--fish <($out/bin/jira completion fish) \
|
||||
--zsh <($out/bin/jira completion zsh)
|
||||
|
||||
$out/bin/jira man --generate --output man
|
||||
|
Loading…
Reference in New Issue
Block a user