2019-07-03 22:31:15 +02:00
|
|
|
#[macro_use]
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod macros;
|
2019-07-03 22:31:15 +02:00
|
|
|
|
2019-11-19 16:13:10 +01:00
|
|
|
mod from_delimited_data;
|
|
|
|
mod to_delimited_data;
|
2019-11-11 12:54:58 +01:00
|
|
|
|
2020-04-15 07:43:23 +02:00
|
|
|
pub(crate) mod alias;
|
2019-10-30 07:54:06 +01:00
|
|
|
pub(crate) mod append;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod args;
|
|
|
|
pub(crate) mod autoview;
|
2020-01-29 14:34:36 +01:00
|
|
|
pub(crate) mod calc;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod cd;
|
|
|
|
pub(crate) mod classified;
|
|
|
|
pub(crate) mod clip;
|
|
|
|
pub(crate) mod command;
|
2019-11-24 00:57:12 +01:00
|
|
|
pub(crate) mod compact;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod config;
|
2019-10-15 12:19:06 +02:00
|
|
|
pub(crate) mod count;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod cp;
|
|
|
|
pub(crate) mod date;
|
|
|
|
pub(crate) mod debug;
|
2019-11-24 10:20:08 +01:00
|
|
|
pub(crate) mod default;
|
2020-01-26 03:43:29 +01:00
|
|
|
pub(crate) mod du;
|
2020-04-13 09:59:57 +02:00
|
|
|
pub(crate) mod each;
|
2019-09-08 01:43:53 +02:00
|
|
|
pub(crate) mod echo;
|
2019-12-05 21:15:41 +01:00
|
|
|
pub(crate) mod edit;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod enter;
|
2019-11-12 09:38:55 +01:00
|
|
|
#[allow(unused)]
|
|
|
|
pub(crate) mod evaluate_by;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod exit;
|
|
|
|
pub(crate) mod first;
|
2019-12-09 02:57:53 +01:00
|
|
|
pub(crate) mod format;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod from_bson;
|
|
|
|
pub(crate) mod from_csv;
|
2020-03-20 20:35:09 +01:00
|
|
|
pub(crate) mod from_ics;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod from_ini;
|
|
|
|
pub(crate) mod from_json;
|
2020-01-07 07:35:00 +01:00
|
|
|
pub(crate) mod from_ods;
|
2019-08-27 23:45:18 +02:00
|
|
|
pub(crate) mod from_sqlite;
|
2019-10-13 21:15:30 +02:00
|
|
|
pub(crate) mod from_ssv;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod from_toml;
|
|
|
|
pub(crate) mod from_tsv;
|
2019-09-19 06:25:29 +02:00
|
|
|
pub(crate) mod from_url;
|
2020-03-20 20:35:09 +01:00
|
|
|
pub(crate) mod from_vcf;
|
2019-11-17 04:18:41 +01:00
|
|
|
pub(crate) mod from_xlsx;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod from_xml;
|
|
|
|
pub(crate) mod from_yaml;
|
|
|
|
pub(crate) mod get;
|
2019-10-21 01:42:07 +02:00
|
|
|
pub(crate) mod group_by;
|
2020-03-29 04:05:57 +02:00
|
|
|
pub(crate) mod headers;
|
2019-08-30 00:52:32 +02:00
|
|
|
pub(crate) mod help;
|
2019-11-12 09:38:55 +01:00
|
|
|
pub(crate) mod histogram;
|
2019-10-27 17:58:39 +01:00
|
|
|
pub(crate) mod history;
|
2019-12-05 21:15:41 +01:00
|
|
|
pub(crate) mod insert;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod last;
|
|
|
|
pub(crate) mod lines;
|
|
|
|
pub(crate) mod ls;
|
2019-11-12 09:38:55 +01:00
|
|
|
#[allow(unused)]
|
|
|
|
pub(crate) mod map_max_by;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod mkdir;
|
|
|
|
pub(crate) mod mv;
|
|
|
|
pub(crate) mod next;
|
|
|
|
pub(crate) mod nth;
|
|
|
|
pub(crate) mod open;
|
2019-12-09 02:57:53 +01:00
|
|
|
pub(crate) mod parse;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod pick;
|
2019-09-17 09:07:11 +02:00
|
|
|
pub(crate) mod pivot;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod plugin;
|
2019-10-30 07:54:06 +01:00
|
|
|
pub(crate) mod prepend;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod prev;
|
2019-09-07 17:49:15 +02:00
|
|
|
pub(crate) mod pwd;
|
2019-12-02 20:15:14 +01:00
|
|
|
pub(crate) mod range;
|
2019-12-04 17:13:21 +01:00
|
|
|
#[allow(unused)]
|
2019-11-12 09:38:55 +01:00
|
|
|
pub(crate) mod reduce_by;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod reject;
|
2020-03-03 22:01:24 +01:00
|
|
|
pub(crate) mod rename;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod reverse;
|
|
|
|
pub(crate) mod rm;
|
2020-04-15 07:43:23 +02:00
|
|
|
pub(crate) mod run_alias;
|
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 05:30:44 +02:00
|
|
|
pub(crate) mod run_external;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod save;
|
|
|
|
pub(crate) mod shells;
|
2020-03-10 23:00:08 +01:00
|
|
|
pub(crate) mod shuffle;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod size;
|
2019-12-09 19:39:51 +01:00
|
|
|
pub(crate) mod skip;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod skip_while;
|
|
|
|
pub(crate) mod sort_by;
|
2019-11-12 09:38:55 +01:00
|
|
|
pub(crate) mod split_by;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod split_column;
|
|
|
|
pub(crate) mod split_row;
|
2020-03-19 00:46:00 +01:00
|
|
|
pub(crate) mod sum;
|
2019-11-12 09:38:55 +01:00
|
|
|
#[allow(unused)]
|
|
|
|
pub(crate) mod t_sort_by;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod table;
|
|
|
|
pub(crate) mod tags;
|
|
|
|
pub(crate) mod to_bson;
|
|
|
|
pub(crate) mod to_csv;
|
2020-03-15 04:04:44 +01:00
|
|
|
pub(crate) mod to_html;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod to_json;
|
2020-03-19 20:18:24 +01:00
|
|
|
pub(crate) mod to_md;
|
2019-08-27 23:45:18 +02:00
|
|
|
pub(crate) mod to_sqlite;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod to_toml;
|
|
|
|
pub(crate) mod to_tsv;
|
2019-09-19 06:25:29 +02:00
|
|
|
pub(crate) mod to_url;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod to_yaml;
|
|
|
|
pub(crate) mod trim;
|
2019-12-31 05:05:02 +01:00
|
|
|
pub(crate) mod uniq;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod version;
|
2019-11-04 16:47:03 +01:00
|
|
|
pub(crate) mod what;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) mod where_;
|
|
|
|
pub(crate) mod which_;
|
2019-12-09 05:41:09 +01:00
|
|
|
pub(crate) mod wrap;
|
2019-05-13 19:30:51 +02:00
|
|
|
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use autoview::Autoview;
|
2019-12-28 22:33:31 +01:00
|
|
|
pub(crate) use cd::Cd;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use command::{
|
2020-02-09 03:24:33 +01:00
|
|
|
per_item_command, whole_stream_command, Command, PerItemCommand, UnevaluatedCallInfo,
|
|
|
|
WholeStreamCommand,
|
2019-08-02 21:15:07 +02:00
|
|
|
};
|
2019-08-27 23:45:18 +02:00
|
|
|
|
2020-04-15 07:43:23 +02:00
|
|
|
pub(crate) use alias::Alias;
|
2019-10-30 07:54:06 +01:00
|
|
|
pub(crate) use append::Append;
|
2020-01-29 14:34:36 +01:00
|
|
|
pub(crate) use calc::Calc;
|
2019-11-24 00:57:12 +01:00
|
|
|
pub(crate) use compact::Compact;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use config::Config;
|
2019-10-15 12:19:06 +02:00
|
|
|
pub(crate) use count::Count;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use cp::Cpy;
|
|
|
|
pub(crate) use date::Date;
|
2019-11-22 09:31:58 +01:00
|
|
|
pub(crate) use debug::Debug;
|
2019-11-24 10:20:08 +01:00
|
|
|
pub(crate) use default::Default;
|
2020-01-26 03:43:29 +01:00
|
|
|
pub(crate) use du::Du;
|
2020-04-13 09:59:57 +02:00
|
|
|
pub(crate) use each::Each;
|
2019-09-08 01:43:53 +02:00
|
|
|
pub(crate) use echo::Echo;
|
2019-12-05 21:15:41 +01:00
|
|
|
pub(crate) use edit::Edit;
|
2020-02-01 19:46:28 +01:00
|
|
|
pub(crate) mod kill;
|
|
|
|
pub(crate) use kill::Kill;
|
2020-01-20 08:05:32 +01:00
|
|
|
pub(crate) mod clear;
|
|
|
|
pub(crate) use clear::Clear;
|
2020-02-18 21:54:32 +01:00
|
|
|
pub(crate) mod touch;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use enter::Enter;
|
2019-12-31 08:36:08 +01:00
|
|
|
#[allow(unused_imports)]
|
2019-11-12 09:38:55 +01:00
|
|
|
pub(crate) use evaluate_by::EvaluateBy;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use exit::Exit;
|
|
|
|
pub(crate) use first::First;
|
2019-12-09 02:57:53 +01:00
|
|
|
pub(crate) use format::Format;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use from_bson::FromBSON;
|
|
|
|
pub(crate) use from_csv::FromCSV;
|
2020-03-20 20:35:09 +01:00
|
|
|
pub(crate) use from_ics::FromIcs;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use from_ini::FromINI;
|
|
|
|
pub(crate) use from_json::FromJSON;
|
2020-01-07 07:35:00 +01:00
|
|
|
pub(crate) use from_ods::FromODS;
|
2019-08-31 03:30:41 +02:00
|
|
|
pub(crate) use from_sqlite::FromDB;
|
2019-08-27 23:45:18 +02:00
|
|
|
pub(crate) use from_sqlite::FromSQLite;
|
2019-10-13 21:15:30 +02:00
|
|
|
pub(crate) use from_ssv::FromSSV;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use from_toml::FromTOML;
|
|
|
|
pub(crate) use from_tsv::FromTSV;
|
2019-09-19 06:25:29 +02:00
|
|
|
pub(crate) use from_url::FromURL;
|
2020-03-20 20:35:09 +01:00
|
|
|
pub(crate) use from_vcf::FromVcf;
|
2019-11-17 04:18:41 +01:00
|
|
|
pub(crate) use from_xlsx::FromXLSX;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use from_xml::FromXML;
|
|
|
|
pub(crate) use from_yaml::FromYAML;
|
2019-08-31 00:13:09 +02:00
|
|
|
pub(crate) use from_yaml::FromYML;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use get::Get;
|
2019-10-21 01:42:07 +02:00
|
|
|
pub(crate) use group_by::GroupBy;
|
2020-03-29 04:05:57 +02:00
|
|
|
pub(crate) use headers::Headers;
|
2019-08-30 00:52:32 +02:00
|
|
|
pub(crate) use help::Help;
|
2019-11-12 09:38:55 +01:00
|
|
|
pub(crate) use histogram::Histogram;
|
2019-10-27 17:58:39 +01:00
|
|
|
pub(crate) use history::History;
|
2019-12-05 21:15:41 +01:00
|
|
|
pub(crate) use insert::Insert;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use last::Last;
|
|
|
|
pub(crate) use lines::Lines;
|
2019-12-28 22:33:31 +01:00
|
|
|
pub(crate) use ls::Ls;
|
2019-12-31 08:36:08 +01:00
|
|
|
#[allow(unused_imports)]
|
2019-11-12 09:38:55 +01:00
|
|
|
pub(crate) use map_max_by::MapMaxBy;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use mkdir::Mkdir;
|
|
|
|
pub(crate) use mv::Move;
|
|
|
|
pub(crate) use next::Next;
|
|
|
|
pub(crate) use nth::Nth;
|
|
|
|
pub(crate) use open::Open;
|
2019-12-09 02:57:53 +01:00
|
|
|
pub(crate) use parse::Parse;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use pick::Pick;
|
2019-09-17 09:07:11 +02:00
|
|
|
pub(crate) use pivot::Pivot;
|
2019-10-30 07:54:06 +01:00
|
|
|
pub(crate) use prepend::Prepend;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use prev::Previous;
|
2019-12-28 22:33:31 +01:00
|
|
|
pub(crate) use pwd::Pwd;
|
2019-12-02 20:15:14 +01:00
|
|
|
pub(crate) use range::Range;
|
2019-12-31 08:36:08 +01:00
|
|
|
#[allow(unused_imports)]
|
2019-11-12 09:38:55 +01:00
|
|
|
pub(crate) use reduce_by::ReduceBy;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use reject::Reject;
|
2020-03-03 22:01:24 +01:00
|
|
|
pub(crate) use rename::Rename;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use reverse::Reverse;
|
|
|
|
pub(crate) use rm::Remove;
|
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 05:30:44 +02:00
|
|
|
pub(crate) use run_external::RunExternalCommand;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use save::Save;
|
|
|
|
pub(crate) use shells::Shells;
|
2020-03-10 23:00:08 +01:00
|
|
|
pub(crate) use shuffle::Shuffle;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use size::Size;
|
2019-12-09 19:39:51 +01:00
|
|
|
pub(crate) use skip::Skip;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use skip_while::SkipWhile;
|
|
|
|
pub(crate) use sort_by::SortBy;
|
2019-11-12 09:38:55 +01:00
|
|
|
pub(crate) use split_by::SplitBy;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use split_column::SplitColumn;
|
|
|
|
pub(crate) use split_row::SplitRow;
|
2020-03-19 00:46:00 +01:00
|
|
|
pub(crate) use sum::Sum;
|
2019-12-31 08:36:08 +01:00
|
|
|
#[allow(unused_imports)]
|
2019-11-12 09:38:55 +01:00
|
|
|
pub(crate) use t_sort_by::TSortBy;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use table::Table;
|
|
|
|
pub(crate) use tags::Tags;
|
|
|
|
pub(crate) use to_bson::ToBSON;
|
|
|
|
pub(crate) use to_csv::ToCSV;
|
2020-03-15 04:04:44 +01:00
|
|
|
pub(crate) use to_html::ToHTML;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use to_json::ToJSON;
|
2020-03-19 20:18:24 +01:00
|
|
|
pub(crate) use to_md::ToMarkdown;
|
2019-08-31 03:30:41 +02:00
|
|
|
pub(crate) use to_sqlite::ToDB;
|
2019-08-27 23:45:18 +02:00
|
|
|
pub(crate) use to_sqlite::ToSQLite;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use to_toml::ToTOML;
|
|
|
|
pub(crate) use to_tsv::ToTSV;
|
2019-09-19 06:25:29 +02:00
|
|
|
pub(crate) use to_url::ToURL;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use to_yaml::ToYAML;
|
2020-02-18 21:54:32 +01:00
|
|
|
pub(crate) use touch::Touch;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use trim::Trim;
|
2019-12-31 05:05:02 +01:00
|
|
|
pub(crate) use uniq::Uniq;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use version::Version;
|
2019-11-04 16:47:03 +01:00
|
|
|
pub(crate) use what::What;
|
2019-08-29 13:08:28 +02:00
|
|
|
pub(crate) use where_::Where;
|
|
|
|
pub(crate) use which_::Which;
|
2019-12-09 05:41:09 +01:00
|
|
|
pub(crate) use wrap::Wrap;
|