Crate configuro

Source
Expand description

This crate is a configuration library that loads and merges configuration YAML files using active profiles list passed by user.

Modules§

profiles

Structs§

ConfigProvider
Tool to transform read configuration to Configuration DTO .
ReadConfigFilesCommand
Command which profiles to read and from

Functions§

read_yaml_config_from_files
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.