Read settings

This commit is contained in:
Martin Brodbeck 2023-11-29 13:04:38 +01:00
parent a32745b1bc
commit 14ebe00d42
4 changed files with 1064 additions and 6 deletions

View file

@ -1,7 +1,16 @@
mod settings;
use settings::Settings;
fn main() {
let settings = Settings::new();
let settings = match settings {
Ok(s) => s,
Err(_) => {
println!("Could not read settings. Please provide the settings file 'clrigctl.toml'.");
return;
}
};
println!("{:?}", settings);
}