fluxcd: refactor shell completion

This commit is contained in:
superherointj
2024-07-15 12:03:40 -03:00
parent 78ec604bfc
commit 7ccf4821a2
+2 -2
View File
@@ -60,8 +60,8 @@ buildGoModule rec {
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
for shell in bash fish zsh; do
$out/bin/flux completion $shell > flux.$shell
installShellCompletion flux.$shell
installShellCompletion --cmd flux \
--$shell <($out/bin/flux completion $shell)
done
'';