Function write_config
Source pub fn write_config(
path: &str,
conf: &OsedaConfig,
) -> Result<(), Box<dyn Error>>
Expand description
Write an OsedaConfig to the provided directory
§Arguments
path - the directory path to write into
conf - the OsedaConfig instance to serialize via serde
§Returns color: Color::Black
Ok(()) if the file is written successfully
Err if file creation or serialization fails