installShellFiles.tests: Add nushell to tests
This commit is contained in:
@@ -14,11 +14,17 @@ runCommandLocal "install-shell-files--install-completion-cmd"
|
||||
echo bar > bar.zsh
|
||||
echo baz > baz.fish
|
||||
echo qux > qux.fish
|
||||
echo buzz > buzz.nu
|
||||
|
||||
installShellCompletion --cmd foobar --bash foo.bash --zsh bar.zsh --fish baz.fish --name qux qux.fish
|
||||
installShellCompletion \
|
||||
--cmd foobar --bash foo.bash \
|
||||
--zsh bar.zsh \
|
||||
--fish baz.fish --name qux qux.fish \
|
||||
--nushell --cmd buzzbar buzz.nu
|
||||
|
||||
cmp foo.bash $out/share/bash-completion/completions/foobar.bash
|
||||
cmp bar.zsh $out/share/zsh/site-functions/_foobar
|
||||
cmp baz.fish $out/share/fish/vendor_completions.d/foobar.fish
|
||||
cmp qux.fish $out/share/fish/vendor_completions.d/qux
|
||||
cmp buzz.nu $out/share/nushell/vendor/autoload/buzzbar.nu
|
||||
''
|
||||
|
||||
@@ -13,9 +13,11 @@ runCommandLocal "install-shell-files--install-completion-fifo"
|
||||
installShellCompletion \
|
||||
--bash --name foo.bash <(echo foo) \
|
||||
--zsh --name _foo <(echo bar) \
|
||||
--fish --name foo.fish <(echo baz)
|
||||
--fish --name foo.fish <(echo baz) \
|
||||
--nushell --name foo.nu <(echo bucks)
|
||||
|
||||
[[ $(<$out/share/bash-completion/completions/foo.bash) == foo ]] || { echo "foo.bash comparison failed"; exit 1; }
|
||||
[[ $(<$out/share/zsh/site-functions/_foo) == bar ]] || { echo "_foo comparison failed"; exit 1; }
|
||||
[[ $(<$out/share/fish/vendor_completions.d/foo.fish) == baz ]] || { echo "foo.fish comparison failed"; exit 1; }
|
||||
[[ $(<$out/share/nushell/vendor/autoload/foo.nu) == bucks ]] || { echo "foo.nu comparison failed"; exit 1; }
|
||||
''
|
||||
|
||||
@@ -13,10 +13,12 @@ runCommandLocal "install-shell-files--install-completion-inference"
|
||||
echo foo > foo.bash
|
||||
echo bar > bar.zsh
|
||||
echo baz > baz.fish
|
||||
echo buzz > buzz.nu
|
||||
|
||||
installShellCompletion foo.bash bar.zsh baz.fish
|
||||
installShellCompletion foo.bash bar.zsh baz.fish buzz.nu
|
||||
|
||||
cmp foo.bash $out/share/bash-completion/completions/foo.bash
|
||||
cmp bar.zsh $out/share/zsh/site-functions/_bar
|
||||
cmp baz.fish $out/share/fish/vendor_completions.d/baz.fish
|
||||
cmp buzz.nu $out/share/nushell/vendor/autoload/buzz.nu
|
||||
''
|
||||
|
||||
@@ -13,10 +13,16 @@ runCommandLocal "install-shell-files--install-completion-name"
|
||||
echo foo > foo
|
||||
echo bar > bar
|
||||
echo baz > baz
|
||||
echo bucks > bucks
|
||||
|
||||
installShellCompletion --bash --name foobar.bash foo --zsh --name _foobar bar --fish baz
|
||||
installShellCompletion \
|
||||
--bash --name foobar.bash foo \
|
||||
--zsh --name _foobar bar \
|
||||
--fish baz \
|
||||
--nushell --name foobar.nu bucks
|
||||
|
||||
cmp foo $out/share/bash-completion/completions/foobar.bash
|
||||
cmp bar $out/share/zsh/site-functions/_foobar
|
||||
cmp baz $out/share/fish/vendor_completions.d/baz
|
||||
cmp bucks $out/share/nushell/vendor/autoload/foobar.nu
|
||||
''
|
||||
|
||||
@@ -15,12 +15,18 @@ runCommandLocal "install-shell-files--install-completion"
|
||||
echo baz > baz
|
||||
echo qux > qux.zsh
|
||||
echo quux > quux
|
||||
echo quokka > quokka
|
||||
|
||||
installShellCompletion --bash foo bar --zsh baz qux.zsh --fish quux
|
||||
installShellCompletion \
|
||||
--bash foo bar \
|
||||
--zsh baz qux.zsh \
|
||||
--fish quux \
|
||||
--nushell quokka
|
||||
|
||||
cmp foo $out/share/bash-completion/completions/foo
|
||||
cmp bar $out/share/bash-completion/completions/bar
|
||||
cmp baz $out/share/zsh/site-functions/_baz
|
||||
cmp qux.zsh $out/share/zsh/site-functions/_qux
|
||||
cmp quux $out/share/fish/vendor_completions.d/quux
|
||||
cmp quokka $out/share/nushell/vendor/autoload/quokka
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user