mirror of
https://github.com/nushell/nushell.git
synced 2025-06-03 08:36:32 +02:00
# Description - Plugin signatures are now saved to `plugin.msgpackz`, which is brotli-compressed MessagePack. - The file is updated incrementally, rather than writing all plugin commands in the engine every time. - The file always contains the result of the `Signature` call to the plugin, even if commands were removed. - Invalid data for a particular plugin just causes an error to be reported, but the rest of the plugins can still be parsed # User-Facing Changes - The plugin file has a different filename, and it's not a nushell script. - The default `plugin.nu` file will be automatically migrated the first time, but not other plugin config files. - We don't currently provide any utilities that could help edit this file, beyond `plugin add` and `plugin rm` - `from msgpackz`, `to msgpackz` could also help - New commands: `plugin add`, `plugin rm` # Tests + Formatting Tests added for the format and for the invalid handling. - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - 🟢 `toolkit test` - 🟢 `toolkit test stdlib` # After Submitting - [ ] Check for documentation changes - [ ] Definitely needs release notes
38 lines
994 B
Rust
38 lines
994 B
Rust
mod commands;
|
|
mod completions;
|
|
mod config_files;
|
|
mod eval_cmds;
|
|
mod eval_file;
|
|
mod menus;
|
|
mod nu_highlight;
|
|
mod print;
|
|
mod prompt;
|
|
mod prompt_update;
|
|
mod reedline_config;
|
|
mod repl;
|
|
mod syntax_highlight;
|
|
mod util;
|
|
mod validation;
|
|
|
|
pub use commands::add_cli_context;
|
|
pub use completions::{FileCompletion, NuCompleter, SemanticSuggestion, SuggestionKind};
|
|
pub use config_files::eval_config_contents;
|
|
pub use eval_cmds::evaluate_commands;
|
|
pub use eval_file::evaluate_file;
|
|
pub use menus::NuHelpCompleter;
|
|
pub use nu_cmd_base::util::get_init_cwd;
|
|
pub use nu_highlight::NuHighlight;
|
|
pub use print::Print;
|
|
pub use prompt::NushellPrompt;
|
|
pub use repl::evaluate_repl;
|
|
pub use syntax_highlight::NuHighlighter;
|
|
pub use util::{eval_source, gather_parent_env_vars};
|
|
pub use validation::NuValidator;
|
|
|
|
#[cfg(feature = "plugin")]
|
|
pub use config_files::add_plugin_file;
|
|
#[cfg(feature = "plugin")]
|
|
pub use config_files::migrate_old_plugin_file;
|
|
#[cfg(feature = "plugin")]
|
|
pub use config_files::read_plugin_file;
|