Allow external binary to register custom commands. (#1780)

This changeset contains everything that a separate binary needs to
register its own commands (including the new help function). It is
very possible that this commit misses other pub use exports, but
the contained ones work for our use cases so far.
This commit is contained in:
Michael Nitschinger
2020-05-14 02:35:22 +02:00
committed by GitHub
parent f5a1d2f4fb
commit e7f08cb21d
4 changed files with 17 additions and 6 deletions

View File

@@ -31,11 +31,17 @@ mod utils;
pub use crate::cli::{
cli, create_default_context, load_plugins, run_pipeline_standalone, run_vec_of_pipelines,
};
pub use crate::commands::command::{
whole_stream_command, CommandArgs, EvaluatedWholeStreamCommandArgs, WholeStreamCommand,
};
pub use crate::commands::help::get_help;
pub use crate::context::CommandRegistry;
pub use crate::data::dict::TaggedListBuilder;
pub use crate::data::primitive;
pub use crate::data::value;
pub use crate::env::environment_syncer::EnvironmentSyncer;
pub use crate::env::host::BasicHost;
pub use crate::stream::OutputStream;
pub use nu_value_ext::ValueExt;
pub use num_traits::cast::ToPrimitive;