Port find command (#658)

* Add `Find` command

* Complete rustdoc for test `Value` constructors

* Use `Option::unwrap_or` instead of match

* Add `Value::test_filesize` constructor

* Handle searching for terms in `find`

* Fix `find` command signature

* Return multiple elements when `find`ing by predicate

* Do not accept rest parameter with predicate

* Handle `CellPath` in `r#in` and `not_in` for `Find`

* Use `PipelineData::filter`
This commit is contained in:
Arthur Targaryen
2022-01-23 23:32:02 +01:00
committed by GitHub
parent e11a030780
commit f82e2fbac6
6 changed files with 266 additions and 6 deletions

View File

@ -62,6 +62,7 @@ pub fn create_default_context(cwd: impl AsRef<Path>) -> EngineState {
Each,
Empty,
Every,
Find,
First,
Flatten,
Get,