[][src]Function rpick::write_config

pub fn write_config(
    config_file_path: &str,
    config: BTreeMap<String, ConfigCategory>
) -> Result<(), Box<dyn Error>>

Save the data from the given BTreeMap to the user's config file.

Arguments

  • config_file_path - A filesystem path that the config should be written to.
  • config - The config that should be serialized as YAML.