1
0
mirror of https://github.com/nushell/nushell.git synced 2024-12-13 18:52:01 +01:00
nushell/tests/fixtures/completions/another
Herlon Aguiar 4d7b86f278
nu-cli: added tests for file completions ()
* nu-cli: added tests for file completions

* test adding extra sort

* Feature/refactor completion options ()

* 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 ()

* 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
..
newfile nu-cli: added tests for file completions () 2022-04-20 16:54:00 +12:00