Add Builder::env to read environment variables

This commit is contained in:
Lukas Kalbertodt
2021-07-27 01:14:00 +02:00
parent aa5eb06f49
commit 74ce2daf05
2 changed files with 9 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ fn main() -> Result<(), anyhow::Error> {
println!("--------------------------------------------------------");
let r = Conf::builder()
.env()
.file("examples/files/simple.toml")
.file("examples/files/etc/simple.yaml")
.load()?;