Skip to main content

shannon_nu_cli/
lib.rs

1#![doc = include_str!("../README.md")]
2mod commands;
3mod completions;
4mod config_files;
5mod eval_cmds;
6mod eval_file;
7mod hints;
8mod menus;
9mod mode_dispatcher;
10mod nu_highlight;
11mod print;
12mod prompt;
13mod prompt_update;
14mod reedline_config;
15mod repl;
16mod syntax_highlight;
17mod util;
18mod validation;
19
20pub use commands::add_cli_context;
21pub use completions::{FileCompletion, NuCompleter, SemanticSuggestion, SuggestionKind};
22pub use config_files::eval_config_contents;
23pub use eval_cmds::{EvaluateCommandsOpts, evaluate_commands};
24pub use eval_file::evaluate_file;
25pub use menus::NuHelpCompleter;
26pub use mode_dispatcher::{ModeDispatcher, ModeResult};
27pub use nu_highlight::NuHighlight;
28pub use print::Print;
29pub use prompt::NushellPrompt;
30pub use prompt_update::update_prompt;
31pub use repl::evaluate_repl;
32pub use syntax_highlight::NuHighlighter;
33pub use util::{eval_source, gather_parent_env_vars};
34pub use validation::NuValidator;
35
36#[cfg(feature = "plugin")]
37pub use config_files::add_plugin_file;
38#[cfg(feature = "plugin")]
39pub use config_files::migrate_old_plugin_file;
40#[cfg(feature = "plugin")]
41pub use config_files::read_plugin_file;
42
43#[cfg(test)]
44#[macro_use]
45extern crate nu_test_support;
46
47#[cfg(test)]
48use nu_test_support::harness::main;