Function configuro::read_yaml_config_from_files [−][src]
pub fn read_yaml_config_from_files<'a, T: AsRef<str>>(
command: &ReadConfigFilesCommand<'a, T>
) -> Yaml
Expand description
Scans config_dir
looking for files matching pattern application-*.yml
where *
is an active
profile specified in the command. Also application.yml
is loaded as a base configuration that
is later on updated and extended with config from passed profiles.
let yaml = configuro::read_yaml_config_from_files( &ReadConfigFilesCommand::new(&["profile1"], "config") );