mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 18:03:51 +01:00
fce6146576
# Description This PR standardizes updates to the config through a new `UpdateFromValue` trait. For now, this trait is private in case we need to make changes to it. Note that this PR adds some additional `ShellError` cases to create standard error messages for config errors. A follow-up PR will move usages of the old error cases to these new ones. This PR also uses `Type::custom` in lots of places (e.g., for string enums). Not sure if this is something we want to encourage. # User-Facing Changes Should be none.
5 lines
209 B
Rust
5 lines
209 B
Rust
pub(super) use super::{error::ConfigErrors, ConfigPath, UpdateFromValue};
|
|
pub use crate::{record, IntoValue, ShellError, Span, Type, Value};
|
|
pub use serde::{Deserialize, Serialize};
|
|
pub use std::str::FromStr;
|