🔧 add config-rs

This commit is contained in:
2022-12-03 22:50:12 -05:00
parent b79912b352
commit 1468631245
4 changed files with 525 additions and 19 deletions

View File

@@ -1,5 +1,7 @@
use clap::{Parser, Subcommand};
mod settings;
#[derive(Parser)]
#[command(author, version, about, long_about = None)]
struct Cli {
@@ -14,6 +16,9 @@ enum Commands {
}
fn main() {
let cfg = settings::Settings::new();
println!("Config parsed: {:?}", cfg);
let cli = Cli::parse();
match &cli.command {