Read settings
This commit is contained in:
parent
a32745b1bc
commit
14ebe00d42
4 changed files with 1064 additions and 6 deletions
15
src/main.rs
15
src/main.rs
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue