mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Parse environment variables - main app
This commit is contained in:
parent
ecfce30736
commit
dabcc24f98
1 changed files with 5 additions and 1 deletions
|
@ -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()?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue