Skip to main content

nu_cli/
lib.rs

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 startup_context;
16mod syntax_highlight;
17mod util;
18mod validation;
19
20pub use commands::add_cli_context;
21pub use completions::{
22    CompletionEngine, FileCompletion, NuCompleter, SemanticSuggestion, SuggestionKind,
23};
24pub use config_files::{eval_config_contents, eval_config_contents_with_kind};
25pub use eval_cmds::{EvaluateCommandsOpts, evaluate_commands};
26pub use eval_file::evaluate_file;
27pub use menus::NuHelpCompleter;
28pub use prompt::NushellPrompt;
29pub use prompt_update::update_prompt;
30pub use repl::evaluate_repl;
31pub use startup_context::{StartupFileKind, StartupLoadContext, report_startup_file_not_found};
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;