mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-25 02:51:17 +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
|
||||
.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()?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue