2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 11:21:24 +00:00

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
.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)?)
.build()?;