Parse environment variables - main app

This commit is contained in:
asonix 2023-01-04 15:05:34 -06:00
parent ecfce30736
commit dabcc24f98

View file

@ -102,7 +102,11 @@ pub(crate) fn configure() -> color_eyre::Result<(Configuration, Operation)> {
}; };
let built = config let built = config
.add_source(config::Environment::with_prefix("PICTRS").separator("__")) .add_source(
config::Environment::with_prefix("PICTRS")
.separator("__")
.try_parsing(true),
)
.add_source(config::Config::try_from(&config_format)?) .add_source(config::Config::try_from(&config_format)?)
.build()?; .build()?;