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