[][src]Function rpick::read_config

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

Return the user's config as a BTreeMap.

Arguments

  • config_file_path - A filesystem path to a YAML file that should be read.

Returns

Returns a mapping of YAML to ConfigCategory's, or an Error.