forked from lix-project/lix
Test the tilde expansion for the flake completion
Also add a disabled test for when the `--override-input` flag comes *before* the flake ref
This commit is contained in:
parent
07e14d3ef0
commit
21c443d4fd
|
@ -32,6 +32,10 @@ popd
|
||||||
|
|
||||||
# Input override completion
|
# Input override completion
|
||||||
[[ "$(NIX_GET_COMPLETIONS=4 nix build ./foo --override-input '')" == $'normal\na\t' ]]
|
[[ "$(NIX_GET_COMPLETIONS=4 nix build ./foo --override-input '')" == $'normal\na\t' ]]
|
||||||
|
## With tilde expansion
|
||||||
|
[[ "$(HOME=$PWD NIX_GET_COMPLETIONS=4 nix build '~/foo' --override-input '')" == $'normal\na\t' ]]
|
||||||
|
## Out of order – not working atm. Should have been fixed by #6693 but apparently not
|
||||||
|
# [[ "$(NIX_GET_COMPLETIONS=3 nix build --override-input '' ./foo)" == $'normal\na\t' ]]
|
||||||
|
|
||||||
# Cli flag completion
|
# Cli flag completion
|
||||||
NIX_GET_COMPLETIONS=2 nix build --log-form | grep -- "--log-format"
|
NIX_GET_COMPLETIONS=2 nix build --log-form | grep -- "--log-format"
|
||||||
|
|
Loading…
Reference in a new issue