Skip to main content

shannon_nu_cli/
lib.rs

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