pub fn get_integer_setting_from_yaml_or_context(
    name: &str,
    yaml: &StrictYaml,
    context_settings: &Settings,
    directive_defaults: &Settings
) -> Result<i64, DotfilesError>
Expand description

Gets a Integer value from YAML or context.

First it tries to find a value in yaml, if it can’t find one then it falls back to context_settings or finally default_settings.

§Errors

  • Found a setting in YAML but that couldn’t be parsed.
  • Didn’t find a setting matching this name anywhere