Crate nu_utils

Source
Expand description

Collection of small utilities that are shared across Nushell crates.

This crate should compile early in the crate graph and thus not depend on major dependencies or core-nushell crates itself.

§Internal Nushell crate

This crate implements components of Nushell and is not designed to support plugin authors or other users directly.

Re-exports§

pub use locale::get_system_locale;
pub use utils::enable_vt_processing;
pub use utils::get_default_config;
pub use utils::get_default_env;
pub use utils::get_doc_config;
pub use utils::get_doc_env;
pub use utils::get_ls_colors;
pub use utils::get_scaffold_config;
pub use utils::get_scaffold_env;
pub use utils::stderr_write_all_and_flush;
pub use utils::stdout_write_all_and_flush;
pub use utils::terminal_size;
pub use emoji::contains_emoji;
pub use flatten_json::JsonFlattener;
pub use float::ObviousFloat;
pub use filesystem::users;

Modules§

emoji
filesystem
flatten_json
float
locale
utils

Macros§

perf

Structs§

SharedCow
A container that transparently shares a value when possible, but clones on mutate.

Traits§

IgnoreCaseExt

Functions§

escape_quote_string
needs_quoting
strip_ansi_likely
Removes ANSI escape codes and some ASCII control characters
strip_ansi_string_likely
Removes ANSI escape codes and some ASCII control characters
strip_ansi_string_unlikely
Removes ANSI escape codes and some ASCII control characters
strip_ansi_unlikely
Removes ANSI escape codes and some ASCII control characters