mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 12:11:47 +01:00
feat: add shell completion generation
This commit is contained in:
11
flake.nix
11
flake.nix
@@ -65,6 +65,10 @@
|
||||
src = ./.;
|
||||
vendorHash = "sha256-EpGgfiCqJjHEOphV2x8FmXeIFls7eq2NVxb/or4NLUo=";
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
subPackages = [
|
||||
"."
|
||||
];
|
||||
@@ -75,6 +79,13 @@
|
||||
sed -i "s/rm -rf SpotiFLAC//g" ./tools/fetch_spotiflac_backend.sh
|
||||
./tools/fetch_spotiflac_backend.sh
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd spotiflac-cli \
|
||||
--bash <($out/bin/spotiflac-cli completion bash) \
|
||||
--fish <($out/bin/spotiflac-cli completion fish) \
|
||||
--zsh <($out/bin/spotiflac-cli completion zsh)
|
||||
'';
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user