jira-cli-go: add fish completions (#339509)

This commit is contained in:
Sandro 2024-09-10 17:24:37 +02:00 committed by GitHub
commit 2565ca31fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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