pub fn get_setting_from_context(
name: &str,
context_settings: &Settings,
directive_defaults: &Settings,
) -> Result<Setting, DotfilesError>
Expand description
Gets a String value for the setting named name
.
First it tries to find a value for the setting in the context_settings
argument, if it doesn’t contain any it falls back to directive-defaults
Returns an error if no such setting was found in either setting collection.