pub fn get_optional_string_array_from_yaml_hash(
name: &str,
yaml: &StrictYaml
) -> Result<Vec<String>, DotfilesError>
Expand description
Gets a specific string array setting from a yaml hash, but if it is not found it returns an empty array.
§Errors
- ErrorType::UnexpectedYamlTypeError if the yaml is not a hash.
- ErrorType::UnexpectedYamlTypeError if the yaml does not have string keys.
- ErrorType::UnexpectedYamlTypeError if the value’s type is not array, or some of its values are not string.