mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Parse environment variables
This commit is contained in:
parent
9960c16488
commit
a489411c6c
1 changed files with 5 additions and 1 deletions
|
@ -66,7 +66,11 @@ pub(crate) fn configure_without_clap<P: AsRef<Path>, T: serde::Serialize, Q: AsR
|
||||||
};
|
};
|
||||||
|
|
||||||
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),
|
||||||
|
)
|
||||||
.build()?;
|
.build()?;
|
||||||
|
|
||||||
let operation = Operation::Run;
|
let operation = Operation::Run;
|
||||||
|
|
Loading…
Reference in a new issue