jira-cli-go: add fish completions

Co-authored-by: Nikolay Korotkiy <sikmir@disroot.org>
This commit is contained in:
Terje Larsen 2024-09-04 12:41:40 +02:00 committed by Weijia Wang
parent f43535dd8e
commit 0b8ac40f56

View File

@ -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