Add Config::META to access the configuration definition at runtime

This commit is contained in:
Lukas Kalbertodt
2021-07-24 18:48:13 +02:00
parent e3e90430f4
commit b71eaa0464
4 changed files with 192 additions and 2 deletions

View File

@@ -27,6 +27,8 @@ struct Cat {
fn main() -> Result<(), anyhow::Error> {
println!("{:#?}", Conf::META);
let r = Conf::from_sources(&[
&Path::new("examples/files/simple.toml"),
&Path::new("examples/files/etc/simple.yaml"),