nushell/crates/nu-parser/src
Corvus Corax a5c5b4e711 Add --help for commands (#1226)
* WIP --help works for PerItemCommands.

* De-linting

* Add more comments (#1228)

* Add some more docs

* More docs

* More docs

* More docs (#1229)

* Add some more docs

* More docs

* More docs

* Add more docs

* External commands: wrap values that contain spaces in quotes (#1214) (#1220)

* External commands: wrap values that contain spaces in quotes (#1214)

* Add fn's argument_contains_whitespace & add_quotes (#1214)

*  Fix formatting with cargo fmt

* Don't wrap argument in quotes when $it is already quoted (#1214)

* Implement --help for internal commands

* Externals now spawn independently. (#1230)

This commit changes the way we shell out externals when using the `"$it"` argument. Also pipes per row to an external's stdin if no `"$it"` argument is present for external commands. 

Further separation of logic (preparing the external's command arguments, getting the data for piping, emitting values, spawning processes) will give us a better idea for lower level details regarding external commands until we can find the right abstractions for making them more generic and unify within the pipeline calling logic of Nu internal's and external's.

* Poll externals quicker. (#1231)

* WIP --help works for PerItemCommands.

* De-linting

* Implement --help for internal commands

* Make having --help the default

* Update test to include new default switch

Co-authored-by: Jonathan Turner <jonathandturner@users.noreply.github.com>
Co-authored-by: Koenraad Verheyden <mail@koenraadverheyden.com>
Co-authored-by: Andrés N. Robalino <andres@androbtech.com>
2020-01-18 11:46:18 +13:00
..
commands Externals now spawn independently. (#1230) 2020-01-16 04:05:53 -05:00
hir Add --help for commands (#1226) 2020-01-18 11:46:18 +13:00
parse Last unwraps (#1160) 2020-01-04 19:44:17 +13:00
commands.rs Separate internal and external command definitions. 2019-12-15 01:24:31 -05:00
hir.rs Add --help for commands (#1226) 2020-01-18 11:46:18 +13:00
lib.rs Move to using clippy (#1142) 2019-12-31 20:36:08 +13:00
parse_command.rs Add --help for commands (#1226) 2020-01-18 11:46:18 +13:00
parse.rs Add Range and start Signature support 2019-12-11 16:41:07 -08:00