🔧 add config-rs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user