nushell/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 Add --help for commands (#1226) 2020-01-18 11:46:18 +13:00
data Add --help for commands (#1226) 2020-01-18 11:46:18 +13:00
env Bump some of our dependencies (#1234) 2020-01-18 09:35:48 +13:00
evaluate Move to using clippy (#1142) 2019-12-31 20:36:08 +13:00
format Change black to other colors (#1194) 2020-01-12 06:21:59 +13:00
plugins Move to using clippy (#1142) 2019-12-31 20:36:08 +13:00
shell Change black to other colors (#1194) 2020-01-12 06:21:59 +13:00
utils Isolate data processing helpers. (#1159) 2020-01-03 23:00:39 -05:00
cli.rs Add some comments (#1225) 2020-01-14 20:38:56 +13:00
commands.rs Add the from-ods command (#1161) 2020-01-07 19:35:00 +13:00
context.rs Last unwraps (#1160) 2020-01-04 19:44:17 +13:00
data.rs Extract ps and sys subcrates. Move helper methods to UntaggedValue 2019-12-05 08:52:31 +13:00
deserializer.rs Move to using clippy (#1142) 2019-12-31 20:36:08 +13:00
env.rs Replace crate visibility identifier with pub(crate) 2019-08-29 13:09:09 +02:00
format.rs Extract core stuff into own crates 2019-12-02 10:54:12 -08:00
git.rs chore: omit the entire git.rs file when starship is used 2019-10-09 08:42:46 +01:00
lib.rs More ununwraps (#1152) 2020-01-03 06:51:20 +13:00
main.rs A few ls improvements. New welcome message (#1195) 2020-01-12 09:49:20 +13:00
prelude.rs Last unwraps (#1160) 2020-01-04 19:44:17 +13:00
shell.rs Move to using clippy (#1142) 2019-12-31 20:36:08 +13:00
stream.rs Eliminate ClassifiedInputStream in favour of InputStream. (#1056) 2020-01-07 13:00:01 -08:00
utils.rs Get error message improvements. (#1185) 2020-01-10 10:44:24 -05:00