about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/tektoncd-cli
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2020-11-16 21:36:24 +0000
committer06kellyjac <dev@j-k.io>2020-11-16 21:36:24 +0000
commitec87b7398fadfbe42b85804bab9a1a0da7c43673 (patch)
tree32528ec3e8b9be83ffcd48712b5d465bbe8144c2 /pkgs/applications/networking/cluster/tektoncd-cli
parent204f52ce65513c0448a283959902fb166adc39f5 (diff)
tektoncd-cli: update to new installShellConfiguration format
Diffstat (limited to 'pkgs/applications/networking/cluster/tektoncd-cli')
-rw-r--r--pkgs/applications/networking/cluster/tektoncd-cli/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/applications/networking/cluster/tektoncd-cli/default.nix b/pkgs/applications/networking/cluster/tektoncd-cli/default.nix
index 1e2a21d46679e..43ab976445c57 100644
--- a/pkgs/applications/networking/cluster/tektoncd-cli/default.nix
+++ b/pkgs/applications/networking/cluster/tektoncd-cli/default.nix
@@ -27,10 +27,10 @@ buildGoModule rec {
     mkdir -p "$out/share/man/man1"
     cp docs/man/man1/* "$out/share/man/man1"
 
-    # TODO: Move to enhanced installShellCompletion when merged: PR #83630
-    $out/bin/tkn completion bash > tkn.bash
-    $out/bin/tkn completion zsh  > _tkn
-    installShellCompletion tkn.bash --zsh _tkn
+    installShellCompletion --cmd tkn \
+      --bash <($out/bin/tkn completion bash) \
+      --fish <($out/bin/tkn completion fish) \
+      --zsh <($out/bin/tkn completion zsh)
   '';
 
   meta = with lib; {