tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
installShellFiles.tests: Add nushell to tests
Ross Smyth
6 months ago
62d5fd3f
23d3a000
+27
-5
5 changed files
expand all
collapse all
unified
split
pkgs
by-name
in
installShellFiles
tests
install-completion-cmd.nix
install-completion-fifo.nix
install-completion-inference.nix
install-completion-name.nix
install-completion.nix
+7
-1
pkgs/by-name/in/installShellFiles/tests/install-completion-cmd.nix
···
14
14
echo bar > bar.zsh
15
15
echo baz > baz.fish
16
16
echo qux > qux.fish
17
17
+
echo buzz > buzz.nu
17
18
18
18
-
installShellCompletion --cmd foobar --bash foo.bash --zsh bar.zsh --fish baz.fish --name qux qux.fish
19
19
+
installShellCompletion \
20
20
+
--cmd foobar --bash foo.bash \
21
21
+
--zsh bar.zsh \
22
22
+
--fish baz.fish --name qux qux.fish \
23
23
+
--nushell --cmd buzzbar buzz.nu
19
24
20
25
cmp foo.bash $out/share/bash-completion/completions/foobar.bash
21
26
cmp bar.zsh $out/share/zsh/site-functions/_foobar
22
27
cmp baz.fish $out/share/fish/vendor_completions.d/foobar.fish
23
28
cmp qux.fish $out/share/fish/vendor_completions.d/qux
29
29
+
cmp buzz.nu $out/share/nushell/vendor/autoload/buzzbar.nu
24
30
''
+3
-1
pkgs/by-name/in/installShellFiles/tests/install-completion-fifo.nix
···
13
13
installShellCompletion \
14
14
--bash --name foo.bash <(echo foo) \
15
15
--zsh --name _foo <(echo bar) \
16
16
-
--fish --name foo.fish <(echo baz)
16
16
+
--fish --name foo.fish <(echo baz) \
17
17
+
--nushell --name foo.nu <(echo bucks)
17
18
18
19
[[ $(<$out/share/bash-completion/completions/foo.bash) == foo ]] || { echo "foo.bash comparison failed"; exit 1; }
19
20
[[ $(<$out/share/zsh/site-functions/_foo) == bar ]] || { echo "_foo comparison failed"; exit 1; }
20
21
[[ $(<$out/share/fish/vendor_completions.d/foo.fish) == baz ]] || { echo "foo.fish comparison failed"; exit 1; }
22
22
+
[[ $(<$out/share/nushell/vendor/autoload/foo.nu) == bucks ]] || { echo "foo.nu comparison failed"; exit 1; }
21
23
''
+3
-1
pkgs/by-name/in/installShellFiles/tests/install-completion-inference.nix
···
13
13
echo foo > foo.bash
14
14
echo bar > bar.zsh
15
15
echo baz > baz.fish
16
16
+
echo buzz > buzz.nu
16
17
17
17
-
installShellCompletion foo.bash bar.zsh baz.fish
18
18
+
installShellCompletion foo.bash bar.zsh baz.fish buzz.nu
18
19
19
20
cmp foo.bash $out/share/bash-completion/completions/foo.bash
20
21
cmp bar.zsh $out/share/zsh/site-functions/_bar
21
22
cmp baz.fish $out/share/fish/vendor_completions.d/baz.fish
23
23
+
cmp buzz.nu $out/share/nushell/vendor/autoload/buzz.nu
22
24
''
+7
-1
pkgs/by-name/in/installShellFiles/tests/install-completion-name.nix
···
13
13
echo foo > foo
14
14
echo bar > bar
15
15
echo baz > baz
16
16
+
echo bucks > bucks
16
17
17
17
-
installShellCompletion --bash --name foobar.bash foo --zsh --name _foobar bar --fish baz
18
18
+
installShellCompletion \
19
19
+
--bash --name foobar.bash foo \
20
20
+
--zsh --name _foobar bar \
21
21
+
--fish baz \
22
22
+
--nushell --name foobar.nu bucks
18
23
19
24
cmp foo $out/share/bash-completion/completions/foobar.bash
20
25
cmp bar $out/share/zsh/site-functions/_foobar
21
26
cmp baz $out/share/fish/vendor_completions.d/baz
27
27
+
cmp bucks $out/share/nushell/vendor/autoload/foobar.nu
22
28
''
+7
-1
pkgs/by-name/in/installShellFiles/tests/install-completion.nix
···
15
15
echo baz > baz
16
16
echo qux > qux.zsh
17
17
echo quux > quux
18
18
+
echo quokka > quokka
18
19
19
19
-
installShellCompletion --bash foo bar --zsh baz qux.zsh --fish quux
20
20
+
installShellCompletion \
21
21
+
--bash foo bar \
22
22
+
--zsh baz qux.zsh \
23
23
+
--fish quux \
24
24
+
--nushell quokka
20
25
21
26
cmp foo $out/share/bash-completion/completions/foo
22
27
cmp bar $out/share/bash-completion/completions/bar
23
28
cmp baz $out/share/zsh/site-functions/_baz
24
29
cmp qux.zsh $out/share/zsh/site-functions/_qux
25
30
cmp quux $out/share/fish/vendor_completions.d/quux
31
31
+
cmp quokka $out/share/nushell/vendor/autoload/quokka
26
32
''