nushell/tests
Herlon Aguiar 4d7b86f278
nu-cli: added tests for file completions (#5232)
* nu-cli: added tests for file completions

* test adding extra sort

* Feature/refactor completion options (#5228)

* Copy completion filter to custom completions

* Remove filter function from completer

This function was a no-op for FileCompletion and CommandCompletion.
Flag- and VariableCompletion just filters with `starts_with` which
happens in both completers anyway and should therefore also be a no-op.
The remaining use case in CustomCompletion was moved into the
CustomCompletion source file.

Filtering should probably happen immediately while fetching completions
to avoid unnecessary memory allocations.

* Add get_sort_by() to Completer trait

* Remove CompletionOptions from Completer::fetch()

* Fix clippy lints

* Apply Completer changes to DotNuCompletion

* add os to $nu based on rust's understanding (#5243)

* add os to $nu based on rust's understanding

* add a few more constants

Co-authored-by: Richard <Tropid@users.noreply.github.com>
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-04-20 16:54:00 +12:00
..
assets/nu_json Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
fixtures nu-cli: added tests for file completions (#5232) 2022-04-20 16:54:00 +12:00
parsing Add more multiline pipeline forms (#4740) 2022-03-05 08:20:13 -05:00
path Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
plugins Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
scope Fix reporting of which and $nu.scope (#4836) 2022-03-13 21:32:46 +02:00
shell Fix failing unit tests on Windows (#5142) (#5143) 2022-04-12 06:18:46 +12:00
main.rs Fix reporting of which and $nu.scope (#4836) 2022-03-13 21:32:46 +02:00