evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / in / installShellFiles / tests / install-completion-cmd.nix
bloba8687ccc2c7d0c1be7457d059eea0e4bb6bcbd71
2   lib,
3   installShellFiles,
4   runCommandLocal,
5 }:
7 runCommandLocal "install-shell-files--install-completion-cmd"
8   {
9     nativeBuildInputs = [ installShellFiles ];
10     meta.platforms = lib.platforms.all;
11   }
12   ''
13     echo foo > foo.bash
14     echo bar > bar.zsh
15     echo baz > baz.fish
16     echo qux > qux.fish
18     installShellCompletion --cmd foobar --bash foo.bash --zsh bar.zsh --fish baz.fish --name qux qux.fish
20     cmp foo.bash $out/share/bash-completion/completions/foobar.bash
21     cmp bar.zsh $out/share/zsh/site-functions/_foobar
22     cmp baz.fish $out/share/fish/vendor_completions.d/foobar.fish
23     cmp qux.fish $out/share/fish/vendor_completions.d/qux
24   ''