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

66 lines
1.5 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 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;
pub mod script;
2019-06-27 04:56:48 +00:00
mod shell;
pub mod types;
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::{parse_and_eval, register_plugins, run_script_file};
2020-12-02 10:00:30 +00:00
pub use crate::commands::classified::block::run_block;
pub use crate::commands::command::{
2020-07-18 04:47:03 +00:00
whole_stream_command, CommandArgs, EvaluatedWholeStreamCommandArgs, Example, WholeStreamCommand,
};
pub use crate::commands::default_context::create_default_context;
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 nu_data::config;
pub use nu_data::dict::TaggedListBuilder;
pub use nu_data::primitive;
pub use nu_data::value;
pub use nu_stream::{InputStream, InterruptibleStream, OutputStream};
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};