2019-07-03 20:31:15 +00:00
|
|
|
#[macro_use]
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod macros;
|
2019-07-03 20:31:15 +00:00
|
|
|
|
2019-11-19 15:13:10 +00:00
|
|
|
mod from_delimited_data;
|
|
|
|
mod to_delimited_data;
|
2019-11-11 11:54:58 +00:00
|
|
|
|
2020-04-15 05:43:23 +00:00
|
|
|
pub(crate) mod alias;
|
2020-06-26 22:37:31 +00:00
|
|
|
pub(crate) mod ansi;
|
2019-10-30 06:54:06 +00:00
|
|
|
pub(crate) mod append;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod args;
|
Autoenv rewrite, security and scripting (#2083)
* Add args in .nurc file to environment
* Working dummy version
* Add add_nurc to sync_env command
* Parse .nurc file
* Delete env vars after leaving directory
* Removing vals not working, strangely
* Refactoring, add comment
* Debugging
* Debug by logging to file
* Add and remove env var behavior appears correct
However, it does not use existing code that well.
* Move work to cli.rs
* Parse config directories
* I am in a state of distress
* Rename .nurc to .nu
* Some notes for me
* Refactoring
* Removing vars works, but not done in a very nice fashion
* Refactor env_vars_to_delete
* Refactor env_vars_to_add()
* Move directory environment code to separate file
* Refactor from_config
* Restore env values
* Working?
* Working?
* Update comments and change var name
* Formatting
* Remove vars after leaving dir
* Remove notes I made
* Rename config function
* Clippy
* Cleanup and handle errors
* cargo fmt
* Better error messages, remove last (?) unwrap
* FORMAT PLZ
* Rename whitelisted_directories to allowed_directories
* Add comment to clarify how overwritten values are restored.
* Change list of allowed dirs to indexmap
* Rewrite starting
* rewrite everything
* Overwritten env values tracks an indexmap instead of vector
* Refactor restore function
* Untrack removed vars properly
* Performance concerns
* Performance concerns
* Error handling
* Clippy
* Add type aliases for String and OsString
* Deletion almost works
* Working?
* Error handling and refactoring
* nicer errors
* Add TODO file
* Move outside of loop
* Error handling
* Reworking adding of vars
* Reworking adding of vars
* Ready for testing
* Refactoring
* Restore overwritten vals code
* todo.org
* Remove overwritten values tracking, as it is not needed
* Cleanup, stop tracking overwritten values as nu takes care of it
* Init autoenv command
* Initialize autoenv and autoenv trust
* autoenv trust toml
* toml
* Use serde for autoenv
* Optional directory arg
* Add autoenv untrust command
* ... actually add autoenv untrust this time
* OsString and paths
* Revert "OsString and paths"
This reverts commit e6eedf882498c1365ecfc899e5ec11bd83cb055c.
* Fix path
* Fix path
* Autoenv trust and untrust
* Start using autoenv
* Check hashes
* Use trust functionality when setting vars
* Remove unused code
* Clippy
* Nicer errors for autoenv commands
* Non-working errors
* Update error description
* Satisfy fmt
* Errors
* Errors print, but not nicely
* Nicer errors
* fmt
* Delete accidentally added todo.org file
* Rename direnv to autoenv
* Use ShellError instead of Error
* Change tests to pass, danger zone?
* Clippy and errors
* Clippy... again
* Replace match with or_else
* Use sha2 crate for hashing
* parsing and error msg
* Refactoring
* Only apply vars once
* if parent dir
* Delete vars
* Rework exit code
* Adding works
* restore
* Fix possibility of infinite loop
* Refactoring
* Non-working
* Revert "Non-working"
This reverts commit e231b85570bcb3fc838f950e9f5004c6a7c5a2ac.
* Revert "Revert "Non-working""
This reverts commit 804092e46a752266576b044401cc97c317e41f21.
* Autoenv trust works without restart
* Cargo fix
* Script vars
* Serde
* Serde errors
* Entry and exitscripts
* Clippy
* Support windows and handle errors
* Formatting
* Fix infinite loop on windows
* Debugging windows loop
* More windows infinite loop debugging
* Windows loop debugging #3
* windows loop #4
* Don't return err
* Cleanup unused code
* Infinite loop debug
* Loop debugging
* Check if infinite loop is vars_to_add
* env_vars_to_add does not terminate, skip loop as test
* Hypothesis: std::env::current_dir() is messing with something
* Hypothesis: std::env::current_dir() is messing with something
* plz
* make clippy happy
* debugging in env_vars_to_add
* Debbuging env_vars_to_add #2
* clippy
* clippy..
* Fool clippy
* Fix another infinite loop
* Binary search for error location x)
* Binary search #3
* fmt
* Binary search #4
* more searching...
* closing in... maybe
* PLZ
* Cleanup
* Restore commented out functionality
* Handle case when user gives the directory "."
* fmt
* Use fs::canonicalize for paths
* Create optional script section
* fmt
* Add exitscripts even if no entryscripts are defined
* All sections in .nu-env are now optional
* Re-read config file each directory change
* Hot reload after autoenv untrust, don't run exitscripts if untrusted
* Debugging
* Fix issue with recursive adding of vars
* Thank you for finding my issues Mr. Azure
* use std::env
2020-07-05 17:34:00 +00:00
|
|
|
pub(crate) mod autoenv;
|
|
|
|
pub(crate) mod autoenv_trust;
|
|
|
|
pub(crate) mod autoenv_untrust;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod autoview;
|
2020-07-19 17:39:43 +00:00
|
|
|
pub(crate) mod benchmark;
|
2020-05-19 19:27:26 +00:00
|
|
|
pub(crate) mod build_string;
|
2020-05-09 23:05:48 +00:00
|
|
|
pub(crate) mod cal;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod cd;
|
2020-06-27 21:46:30 +00:00
|
|
|
pub(crate) mod char_;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod classified;
|
2020-05-18 12:56:01 +00:00
|
|
|
#[cfg(feature = "clipboard")]
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod clip;
|
|
|
|
pub(crate) mod command;
|
2019-11-23 23:57:12 +00:00
|
|
|
pub(crate) mod compact;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod config;
|
2020-07-03 19:53:20 +00:00
|
|
|
pub(crate) mod constants;
|
2019-10-15 10:19:06 +00:00
|
|
|
pub(crate) mod count;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod cp;
|
|
|
|
pub(crate) mod date;
|
|
|
|
pub(crate) mod debug;
|
2019-11-24 09:20:08 +00:00
|
|
|
pub(crate) mod default;
|
2020-06-26 22:37:31 +00:00
|
|
|
pub(crate) mod do_;
|
2020-04-26 06:34:45 +00:00
|
|
|
pub(crate) mod drop;
|
2020-01-26 02:43:29 +00:00
|
|
|
pub(crate) mod du;
|
2020-04-13 07:59:57 +00:00
|
|
|
pub(crate) mod each;
|
2019-09-07 23:43:53 +00:00
|
|
|
pub(crate) mod echo;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod enter;
|
2020-06-16 19:58:41 +00:00
|
|
|
pub(crate) mod every;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod exit;
|
|
|
|
pub(crate) mod first;
|
2019-12-09 01:57:53 +00:00
|
|
|
pub(crate) mod format;
|
2020-05-04 08:44:33 +00:00
|
|
|
pub(crate) mod from;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod from_csv;
|
2020-04-26 04:26:35 +00:00
|
|
|
pub(crate) mod from_eml;
|
2020-03-20 19:35:09 +00:00
|
|
|
pub(crate) mod from_ics;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod from_ini;
|
|
|
|
pub(crate) mod from_json;
|
2020-01-07 06:35:00 +00:00
|
|
|
pub(crate) mod from_ods;
|
2019-10-13 19:15:30 +00:00
|
|
|
pub(crate) mod from_ssv;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod from_toml;
|
|
|
|
pub(crate) mod from_tsv;
|
2019-09-19 04:25:29 +00:00
|
|
|
pub(crate) mod from_url;
|
2020-03-20 19:35:09 +00:00
|
|
|
pub(crate) mod from_vcf;
|
2019-11-17 03:18:41 +00:00
|
|
|
pub(crate) mod from_xlsx;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod from_xml;
|
|
|
|
pub(crate) mod from_yaml;
|
|
|
|
pub(crate) mod get;
|
2019-10-20 23:42:07 +00:00
|
|
|
pub(crate) mod group_by;
|
2020-05-15 09:16:09 +00:00
|
|
|
pub(crate) mod group_by_date;
|
2020-03-29 02:05:57 +00:00
|
|
|
pub(crate) mod headers;
|
2019-08-29 22:52:32 +00:00
|
|
|
pub(crate) mod help;
|
2019-11-12 08:38:55 +00:00
|
|
|
pub(crate) mod histogram;
|
2019-10-27 16:58:39 +00:00
|
|
|
pub(crate) mod history;
|
2020-07-04 19:40:04 +00:00
|
|
|
pub(crate) mod if_;
|
2019-12-05 20:15:41 +00:00
|
|
|
pub(crate) mod insert;
|
2020-04-26 17:30:52 +00:00
|
|
|
pub(crate) mod is_empty;
|
2020-04-30 04:18:24 +00:00
|
|
|
pub(crate) mod keep;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod last;
|
|
|
|
pub(crate) mod lines;
|
|
|
|
pub(crate) mod ls;
|
2020-06-13 21:49:57 +00:00
|
|
|
pub(crate) mod math;
|
2020-04-30 04:18:24 +00:00
|
|
|
pub(crate) mod merge;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod mkdir;
|
2020-07-06 15:27:01 +00:00
|
|
|
pub(crate) mod move_;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod next;
|
|
|
|
pub(crate) mod nth;
|
|
|
|
pub(crate) mod open;
|
2020-06-04 20:01:24 +00:00
|
|
|
pub(crate) mod parse;
|
2020-07-25 19:29:15 +00:00
|
|
|
pub(crate) mod path;
|
2019-09-17 07:07:11 +00:00
|
|
|
pub(crate) mod pivot;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod plugin;
|
2019-10-30 06:54:06 +00:00
|
|
|
pub(crate) mod prepend;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod prev;
|
2019-09-07 15:49:15 +00:00
|
|
|
pub(crate) mod pwd;
|
2020-06-25 05:51:09 +00:00
|
|
|
pub(crate) mod random;
|
2019-12-02 19:15:14 +00:00
|
|
|
pub(crate) mod range;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod reject;
|
2020-03-03 21:01:24 +00:00
|
|
|
pub(crate) mod rename;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod reverse;
|
|
|
|
pub(crate) mod rm;
|
2020-04-15 05:43:23 +00: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 03:30:44 +00:00
|
|
|
pub(crate) mod run_external;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod save;
|
2020-05-07 11:03:43 +00:00
|
|
|
pub(crate) mod select;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod shells;
|
2020-03-10 22:00:08 +00:00
|
|
|
pub(crate) mod shuffle;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod size;
|
2019-12-09 18:39:51 +00:00
|
|
|
pub(crate) mod skip;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod sort_by;
|
2020-05-24 06:41:30 +00:00
|
|
|
pub(crate) mod split;
|
2019-11-12 08:38:55 +00:00
|
|
|
pub(crate) mod split_by;
|
2020-05-26 22:19:18 +00:00
|
|
|
pub(crate) mod str_;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod table;
|
|
|
|
pub(crate) mod tags;
|
2020-05-04 08:44:33 +00:00
|
|
|
pub(crate) mod to;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod to_csv;
|
2020-03-15 03:04:44 +00:00
|
|
|
pub(crate) mod to_html;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod to_json;
|
2020-03-19 19:18:24 +00:00
|
|
|
pub(crate) mod to_md;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod to_toml;
|
|
|
|
pub(crate) mod to_tsv;
|
2019-09-19 04:25:29 +00:00
|
|
|
pub(crate) mod to_url;
|
2020-07-24 07:41:22 +00:00
|
|
|
pub(crate) mod to_xml;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod to_yaml;
|
|
|
|
pub(crate) mod trim;
|
2019-12-31 04:05:02 +00:00
|
|
|
pub(crate) mod uniq;
|
2020-05-07 05:33:30 +00:00
|
|
|
pub(crate) mod update;
|
2020-07-29 20:56:56 +00:00
|
|
|
pub(crate) mod url_;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod version;
|
2019-11-04 15:47:03 +00:00
|
|
|
pub(crate) mod what;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) mod where_;
|
|
|
|
pub(crate) mod which_;
|
2020-05-06 03:56:31 +00:00
|
|
|
pub(crate) mod with_env;
|
2019-12-09 04:41:09 +00:00
|
|
|
pub(crate) mod wrap;
|
2019-05-13 17:30:51 +00:00
|
|
|
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use autoview::Autoview;
|
2019-12-28 21:33:31 +00:00
|
|
|
pub(crate) use cd::Cd;
|
2020-05-11 20:05:44 +00:00
|
|
|
pub(crate) use command::{
|
|
|
|
whole_stream_command, Command, Example, UnevaluatedCallInfo, WholeStreamCommand,
|
|
|
|
};
|
2019-08-27 21:45:18 +00:00
|
|
|
|
2020-04-15 05:43:23 +00:00
|
|
|
pub(crate) use alias::Alias;
|
2020-06-26 22:37:31 +00:00
|
|
|
pub(crate) use ansi::Ansi;
|
2019-10-30 06:54:06 +00:00
|
|
|
pub(crate) use append::Append;
|
Autoenv rewrite, security and scripting (#2083)
* Add args in .nurc file to environment
* Working dummy version
* Add add_nurc to sync_env command
* Parse .nurc file
* Delete env vars after leaving directory
* Removing vals not working, strangely
* Refactoring, add comment
* Debugging
* Debug by logging to file
* Add and remove env var behavior appears correct
However, it does not use existing code that well.
* Move work to cli.rs
* Parse config directories
* I am in a state of distress
* Rename .nurc to .nu
* Some notes for me
* Refactoring
* Removing vars works, but not done in a very nice fashion
* Refactor env_vars_to_delete
* Refactor env_vars_to_add()
* Move directory environment code to separate file
* Refactor from_config
* Restore env values
* Working?
* Working?
* Update comments and change var name
* Formatting
* Remove vars after leaving dir
* Remove notes I made
* Rename config function
* Clippy
* Cleanup and handle errors
* cargo fmt
* Better error messages, remove last (?) unwrap
* FORMAT PLZ
* Rename whitelisted_directories to allowed_directories
* Add comment to clarify how overwritten values are restored.
* Change list of allowed dirs to indexmap
* Rewrite starting
* rewrite everything
* Overwritten env values tracks an indexmap instead of vector
* Refactor restore function
* Untrack removed vars properly
* Performance concerns
* Performance concerns
* Error handling
* Clippy
* Add type aliases for String and OsString
* Deletion almost works
* Working?
* Error handling and refactoring
* nicer errors
* Add TODO file
* Move outside of loop
* Error handling
* Reworking adding of vars
* Reworking adding of vars
* Ready for testing
* Refactoring
* Restore overwritten vals code
* todo.org
* Remove overwritten values tracking, as it is not needed
* Cleanup, stop tracking overwritten values as nu takes care of it
* Init autoenv command
* Initialize autoenv and autoenv trust
* autoenv trust toml
* toml
* Use serde for autoenv
* Optional directory arg
* Add autoenv untrust command
* ... actually add autoenv untrust this time
* OsString and paths
* Revert "OsString and paths"
This reverts commit e6eedf882498c1365ecfc899e5ec11bd83cb055c.
* Fix path
* Fix path
* Autoenv trust and untrust
* Start using autoenv
* Check hashes
* Use trust functionality when setting vars
* Remove unused code
* Clippy
* Nicer errors for autoenv commands
* Non-working errors
* Update error description
* Satisfy fmt
* Errors
* Errors print, but not nicely
* Nicer errors
* fmt
* Delete accidentally added todo.org file
* Rename direnv to autoenv
* Use ShellError instead of Error
* Change tests to pass, danger zone?
* Clippy and errors
* Clippy... again
* Replace match with or_else
* Use sha2 crate for hashing
* parsing and error msg
* Refactoring
* Only apply vars once
* if parent dir
* Delete vars
* Rework exit code
* Adding works
* restore
* Fix possibility of infinite loop
* Refactoring
* Non-working
* Revert "Non-working"
This reverts commit e231b85570bcb3fc838f950e9f5004c6a7c5a2ac.
* Revert "Revert "Non-working""
This reverts commit 804092e46a752266576b044401cc97c317e41f21.
* Autoenv trust works without restart
* Cargo fix
* Script vars
* Serde
* Serde errors
* Entry and exitscripts
* Clippy
* Support windows and handle errors
* Formatting
* Fix infinite loop on windows
* Debugging windows loop
* More windows infinite loop debugging
* Windows loop debugging #3
* windows loop #4
* Don't return err
* Cleanup unused code
* Infinite loop debug
* Loop debugging
* Check if infinite loop is vars_to_add
* env_vars_to_add does not terminate, skip loop as test
* Hypothesis: std::env::current_dir() is messing with something
* Hypothesis: std::env::current_dir() is messing with something
* plz
* make clippy happy
* debugging in env_vars_to_add
* Debbuging env_vars_to_add #2
* clippy
* clippy..
* Fool clippy
* Fix another infinite loop
* Binary search for error location x)
* Binary search #3
* fmt
* Binary search #4
* more searching...
* closing in... maybe
* PLZ
* Cleanup
* Restore commented out functionality
* Handle case when user gives the directory "."
* fmt
* Use fs::canonicalize for paths
* Create optional script section
* fmt
* Add exitscripts even if no entryscripts are defined
* All sections in .nu-env are now optional
* Re-read config file each directory change
* Hot reload after autoenv untrust, don't run exitscripts if untrusted
* Debugging
* Fix issue with recursive adding of vars
* Thank you for finding my issues Mr. Azure
* use std::env
2020-07-05 17:34:00 +00:00
|
|
|
pub(crate) use autoenv::Autoenv;
|
|
|
|
pub(crate) use autoenv_trust::AutoenvTrust;
|
|
|
|
pub(crate) use autoenv_untrust::AutoenvUnTrust;
|
2020-07-19 17:39:43 +00:00
|
|
|
pub(crate) use benchmark::Benchmark;
|
2020-05-19 19:27:26 +00:00
|
|
|
pub(crate) use build_string::BuildString;
|
2020-05-09 23:05:48 +00:00
|
|
|
pub(crate) use cal::Cal;
|
2020-06-27 21:46:30 +00:00
|
|
|
pub(crate) use char_::Char;
|
2019-11-23 23:57:12 +00:00
|
|
|
pub(crate) use compact::Compact;
|
2020-07-11 00:11:04 +00:00
|
|
|
pub(crate) use config::{
|
|
|
|
Config, ConfigClear, ConfigGet, ConfigLoad, ConfigPath, ConfigRemove, ConfigSet, ConfigSetInto,
|
|
|
|
};
|
2019-10-15 10:19:06 +00:00
|
|
|
pub(crate) use count::Count;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use cp::Cpy;
|
|
|
|
pub(crate) use date::Date;
|
2019-11-22 08:31:58 +00:00
|
|
|
pub(crate) use debug::Debug;
|
2019-11-24 09:20:08 +00:00
|
|
|
pub(crate) use default::Default;
|
2020-06-26 22:37:31 +00:00
|
|
|
pub(crate) use do_::Do;
|
2020-04-26 06:34:45 +00:00
|
|
|
pub(crate) use drop::Drop;
|
2020-01-26 02:43:29 +00:00
|
|
|
pub(crate) use du::Du;
|
2020-04-13 07:59:57 +00:00
|
|
|
pub(crate) use each::Each;
|
2019-09-07 23:43:53 +00:00
|
|
|
pub(crate) use echo::Echo;
|
2020-07-04 19:40:04 +00:00
|
|
|
pub(crate) use if_::If;
|
2020-04-26 17:30:52 +00:00
|
|
|
pub(crate) use is_empty::IsEmpty;
|
2020-05-07 05:33:30 +00:00
|
|
|
pub(crate) use update::Update;
|
2020-02-01 18:46:28 +00:00
|
|
|
pub(crate) mod kill;
|
|
|
|
pub(crate) use kill::Kill;
|
2020-01-20 07:05:32 +00:00
|
|
|
pub(crate) mod clear;
|
|
|
|
pub(crate) use clear::Clear;
|
2020-02-18 20:54:32 +00:00
|
|
|
pub(crate) mod touch;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use enter::Enter;
|
2020-06-16 19:58:41 +00:00
|
|
|
pub(crate) use every::Every;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use exit::Exit;
|
|
|
|
pub(crate) use first::First;
|
2019-12-09 01:57:53 +00:00
|
|
|
pub(crate) use format::Format;
|
2020-05-04 08:44:33 +00:00
|
|
|
pub(crate) use from::From;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use from_csv::FromCSV;
|
2020-04-26 04:26:35 +00:00
|
|
|
pub(crate) use from_eml::FromEML;
|
2020-03-20 19:35:09 +00:00
|
|
|
pub(crate) use from_ics::FromIcs;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use from_ini::FromINI;
|
|
|
|
pub(crate) use from_json::FromJSON;
|
2020-01-07 06:35:00 +00:00
|
|
|
pub(crate) use from_ods::FromODS;
|
2019-10-13 19:15:30 +00:00
|
|
|
pub(crate) use from_ssv::FromSSV;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use from_toml::FromTOML;
|
|
|
|
pub(crate) use from_tsv::FromTSV;
|
2019-09-19 04:25:29 +00:00
|
|
|
pub(crate) use from_url::FromURL;
|
2020-03-20 19:35:09 +00:00
|
|
|
pub(crate) use from_vcf::FromVcf;
|
2019-11-17 03:18:41 +00:00
|
|
|
pub(crate) use from_xlsx::FromXLSX;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use from_xml::FromXML;
|
|
|
|
pub(crate) use from_yaml::FromYAML;
|
2019-08-30 22:13:09 +00:00
|
|
|
pub(crate) use from_yaml::FromYML;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use get::Get;
|
2019-10-20 23:42:07 +00:00
|
|
|
pub(crate) use group_by::GroupBy;
|
2020-05-15 09:16:09 +00:00
|
|
|
pub(crate) use group_by_date::GroupByDate;
|
2020-03-29 02:05:57 +00:00
|
|
|
pub(crate) use headers::Headers;
|
2019-08-29 22:52:32 +00:00
|
|
|
pub(crate) use help::Help;
|
2019-11-12 08:38:55 +00:00
|
|
|
pub(crate) use histogram::Histogram;
|
2019-10-27 16:58:39 +00:00
|
|
|
pub(crate) use history::History;
|
2019-12-05 20:15:41 +00:00
|
|
|
pub(crate) use insert::Insert;
|
2020-07-17 19:06:48 +00:00
|
|
|
pub(crate) use keep::{Keep, KeepUntil, KeepWhile};
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use last::Last;
|
|
|
|
pub(crate) use lines::Lines;
|
2019-12-28 21:33:31 +00:00
|
|
|
pub(crate) use ls::Ls;
|
2020-06-24 17:57:27 +00:00
|
|
|
pub(crate) use math::{
|
2020-07-18 04:11:19 +00:00
|
|
|
Math, MathAverage, MathEval, MathMaximum, MathMedian, MathMinimum, MathMode, MathStddev,
|
|
|
|
MathSummation, MathVariance,
|
2020-06-24 17:57:27 +00:00
|
|
|
};
|
2020-04-30 04:18:24 +00:00
|
|
|
pub(crate) use merge::Merge;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use mkdir::Mkdir;
|
2020-07-06 15:27:01 +00:00
|
|
|
pub(crate) use move_::{Move, MoveColumn, Mv};
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use next::Next;
|
|
|
|
pub(crate) use nth::Nth;
|
|
|
|
pub(crate) use open::Open;
|
2020-06-04 20:01:24 +00:00
|
|
|
pub(crate) use parse::Parse;
|
2020-07-27 02:12:07 +00:00
|
|
|
pub(crate) use path::{PathBasename, PathCommand, PathExists, PathExpand, PathExtension, PathType};
|
2019-09-17 07:07:11 +00:00
|
|
|
pub(crate) use pivot::Pivot;
|
2019-10-30 06:54:06 +00:00
|
|
|
pub(crate) use prepend::Prepend;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use prev::Previous;
|
2019-12-28 21:33:31 +00:00
|
|
|
pub(crate) use pwd::Pwd;
|
2020-07-18 01:59:23 +00:00
|
|
|
#[cfg(feature = "uuid_crate")]
|
|
|
|
pub(crate) use random::RandomUUID;
|
|
|
|
pub(crate) use random::{Random, RandomBool, RandomDice};
|
2019-12-02 19:15:14 +00:00
|
|
|
pub(crate) use range::Range;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use reject::Reject;
|
2020-03-03 21:01:24 +00:00
|
|
|
pub(crate) use rename::Rename;
|
2019-08-29 11:08:28 +00: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 03:30:44 +00:00
|
|
|
pub(crate) use run_external::RunExternalCommand;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use save::Save;
|
2020-05-07 11:03:43 +00:00
|
|
|
pub(crate) use select::Select;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use shells::Shells;
|
2020-03-10 22:00:08 +00:00
|
|
|
pub(crate) use shuffle::Shuffle;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use size::Size;
|
2020-07-15 01:44:49 +00:00
|
|
|
pub(crate) use skip::{Skip, SkipUntil, SkipWhile};
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use sort_by::SortBy;
|
2020-07-06 15:27:01 +00:00
|
|
|
pub(crate) use split::{Split, SplitChars, SplitColumn, SplitRow};
|
2019-11-12 08:38:55 +00:00
|
|
|
pub(crate) use split_by::SplitBy;
|
2020-05-26 22:19:18 +00:00
|
|
|
pub(crate) use str_::{
|
2020-08-04 06:36:51 +00:00
|
|
|
Str, StrCapitalize, StrCollect, StrContains, StrDowncase, StrEndsWith, StrFindReplace, StrFrom,
|
|
|
|
StrIndexOf, StrLength, StrReverse, StrSet, StrStartsWith, StrSubstring, StrToDatetime,
|
|
|
|
StrToDecimal, StrToInteger, StrTrim, StrTrimLeft, StrTrimRight, StrUpcase,
|
2020-05-26 22:19:18 +00:00
|
|
|
};
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use table::Table;
|
|
|
|
pub(crate) use tags::Tags;
|
2020-05-04 08:44:33 +00:00
|
|
|
pub(crate) use to::To;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use to_csv::ToCSV;
|
2020-03-15 03:04:44 +00:00
|
|
|
pub(crate) use to_html::ToHTML;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use to_json::ToJSON;
|
2020-03-19 19:18:24 +00:00
|
|
|
pub(crate) use to_md::ToMarkdown;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use to_toml::ToTOML;
|
|
|
|
pub(crate) use to_tsv::ToTSV;
|
2019-09-19 04:25:29 +00:00
|
|
|
pub(crate) use to_url::ToURL;
|
2020-07-24 07:41:22 +00:00
|
|
|
pub(crate) use to_xml::ToXML;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use to_yaml::ToYAML;
|
2020-02-18 20:54:32 +00:00
|
|
|
pub(crate) use touch::Touch;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use trim::Trim;
|
2019-12-31 04:05:02 +00:00
|
|
|
pub(crate) use uniq::Uniq;
|
2020-07-29 20:56:56 +00:00
|
|
|
pub(crate) use url_::{UrlCommand, UrlHost, UrlPath, UrlQuery, UrlScheme};
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use version::Version;
|
2019-11-04 15:47:03 +00:00
|
|
|
pub(crate) use what::What;
|
2019-08-29 11:08:28 +00:00
|
|
|
pub(crate) use where_::Where;
|
|
|
|
pub(crate) use which_::Which;
|
2020-05-06 03:56:31 +00:00
|
|
|
pub(crate) use with_env::WithEnv;
|
2019-12-09 04:41:09 +00:00
|
|
|
pub(crate) use wrap::Wrap;
|