mirror of
https://github.com/OMGeeky/confique.git
synced 2026-02-15 22:04:43 +01:00
Add Builder::env to read environment variables
This commit is contained in:
@@ -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()?;
|
||||
|
||||
Reference in New Issue
Block a user