nushell/crates
Jason Gedge 522a828687
Move external closer to internal (#1611)
* Refactor InputStream and affected commands.

First, making `values` private and leaning on the `Stream` implementation makes
consumes of `InputStream` less likely to have to change in the future, if we
change what an `InputStream` is internally.

Second, we're dropping `Option<InputStream>` as the input to pipelines,
internals, and externals. Instead, `InputStream.is_empty` can be used to check
for "emptiness". Empty streams are typically only ever used as the first input
to a pipeline.

* Add run_external internal command.

We want to push external commands closer to internal commands, eventually
eliminating the concept of "external" completely. This means we can consolidate
a couple of things:

- Variable evaluation (for example, `$it`, `$nu`, alias vars)
- Behaviour of whole stream vs per-item external execution

It should also make it easier for us to start introducing argument signatures
for external commands,

* Update run_external.rs

* Update run_external.rs

* Update run_external.rs

* Update run_external.rs

Co-authored-by: Jonathan Turner <jonathandturner@users.noreply.github.com>
2020-04-20 15:30:44 +12:00
..
nu_plugin_average Add experimental new parser (#1554) 2020-04-06 19:16:14 +12:00
nu_plugin_binaryview More dep bumps (#1562) 2020-04-09 10:28:20 +12:00
nu_plugin_fetch Fix the versions up a bit to prevent breakage (#1602) 2020-04-18 15:31:57 +12:00
nu_plugin_inc Add experimental new parser (#1554) 2020-04-06 19:16:14 +12:00
nu_plugin_match Add experimental new parser (#1554) 2020-04-06 19:16:14 +12:00
nu_plugin_post Fix the versions up a bit to prevent breakage (#1602) 2020-04-18 15:31:57 +12:00
nu_plugin_ps More dep bumps (#1562) 2020-04-09 10:28:20 +12:00
nu_plugin_str some minor improvements and removing dead code (#1563) 2020-04-10 07:48:10 +12:00
nu_plugin_sys Math operators (#1601) 2020-04-18 13:50:58 +12:00
nu_plugin_textview More dep bumps (#1562) 2020-04-09 10:28:20 +12:00
nu_plugin_tree Add experimental new parser (#1554) 2020-04-06 19:16:14 +12:00
nu-build Bump a lot of deps (#1560) 2020-04-07 19:51:17 +12:00
nu-cli Move external closer to internal (#1611) 2020-04-20 15:30:44 +12:00
nu-errors Pipeline blocks (#1579) 2020-04-13 19:59:57 +12:00
nu-parser Move external closer to internal (#1611) 2020-04-20 15:30:44 +12:00
nu-plugin Bump a lot of deps (#1560) 2020-04-07 19:51:17 +12:00
nu-protocol Move external closer to internal (#1611) 2020-04-20 15:30:44 +12:00
nu-source More dep bumps (#1562) 2020-04-09 10:28:20 +12:00
nu-test-support Pipeline blocks (#1579) 2020-04-13 19:59:57 +12:00
nu-value-ext Bump a lot of deps (#1560) 2020-04-07 19:51:17 +12:00