diff --git a/Cargo.lock b/Cargo.lock index fbd131a3fa..1d72ef8ea1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2691,6 +2691,7 @@ dependencies = [ "nu-ansi-term", "nu-color-config", "nu-engine", + "nu-json", "nu-parser", "nu-protocol", "nu-table", diff --git a/crates/nu-color-config/src/nu_style.rs b/crates/nu-color-config/src/nu_style.rs index b55ce97636..ef66267168 100644 --- a/crates/nu-color-config/src/nu_style.rs +++ b/crates/nu-color-config/src/nu_style.rs @@ -1,13 +1,74 @@ use nu_ansi_term::{Color, Style}; -use serde::Deserialize; +use serde::{Deserialize, Serialize}; -#[derive(Deserialize, PartialEq, Eq, Debug)] +#[derive(Deserialize, Serialize, PartialEq, Eq, Debug)] pub struct NuStyle { pub fg: Option, pub bg: Option, pub attr: Option, } +impl From