forked from extern/nushell
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:
committed by
GitHub
parent
f5a1d2f4fb
commit
e7f08cb21d
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user