nushell/crates/nu-cli/src/lib.rs

67 lines
1.6 KiB
Rust
Raw Normal View History

#![recursion_limit = "2048"]
#[cfg(test)]
#[macro_use]
extern crate indexmap;
#[macro_use]
mod prelude;
2019-06-27 04:56:48 +00:00
#[cfg(test)]
extern crate quickcheck;
#[cfg(test)]
#[macro_use(quickcheck)]
extern crate quickcheck_macros;
2019-06-27 04:56:48 +00:00
mod cli;
mod command_registry;
2019-06-27 04:56:48 +00:00
mod commands;
#[cfg(feature = "rustyline-support")]
mod completion;
mod deserializer;
mod documentation;
2019-06-27 04:56:48 +00:00
mod env;
mod evaluate;
mod evaluation_context;
2019-06-27 04:56:48 +00:00
mod format;
mod futures;
#[cfg(feature = "rustyline-support")]
2019-06-27 04:56:48 +00:00
mod git;
#[cfg(feature = "rustyline-support")]
2020-07-15 07:51:59 +00:00
mod keybinding;
mod path;
2020-08-27 07:57:40 +00:00
mod plugin;
2019-06-27 04:56:48 +00:00
mod shell;
mod stream;
2020-05-18 03:52:56 +00:00
pub mod utils;
2019-06-27 04:56:48 +00:00
#[cfg(test)]
mod examples;
#[cfg(feature = "rustyline-support")]
pub use crate::cli::cli;
pub use crate::cli::{
create_default_context, parse_and_eval, process_line, register_plugins,
run_pipeline_standalone, run_vec_of_pipelines, LineResult,
};
pub use crate::command_registry::CommandRegistry;
pub use crate::commands::command::{
2020-07-18 04:47:03 +00:00
whole_stream_command, CommandArgs, EvaluatedWholeStreamCommandArgs, Example, WholeStreamCommand,
};
pub use crate::commands::help::get_help;
pub use crate::env::environment_syncer::EnvironmentSyncer;
2019-07-04 05:11:56 +00:00
pub use crate::env::host::BasicHost;
pub use crate::evaluation_context::EvaluationContext;
2020-07-18 04:47:03 +00:00
pub use crate::prelude::ToOutputStream;
pub use crate::stream::{InputStream, InterruptibleStream, OutputStream};
pub use nu_data::config;
pub use nu_data::dict::TaggedListBuilder;
pub use nu_data::primitive;
pub use nu_data::value;
2019-12-09 18:52:01 +00:00
pub use nu_value_ext::ValueExt;
pub use num_traits::cast::ToPrimitive;
// TODO: Temporary redirect
pub use nu_protocol::{did_you_mean, TaggedDictBuilder};