refractr/src/main.rs

26 lines
691 B
Rust
Raw Normal View History

2025-02-15 22:11:08 -07:00
mod config;
use clap::Parser;
use std::path::PathBuf;
#[derive(Parser)]
#[command(name = "refractor")]
#[command(version = "0.1.0")]
#[command(about = "An automated push/pull/clone utility for mirroring Git repositories")]
#[command(long_about = None)]
struct Args {
#[arg(short, long, help = "Specify a config file", default_value = "/etc/refractr/config.toml")]
config: PathBuf,
#[arg(short, long, help = "Specify the level of verbosity", action = clap::ArgAction::Count)]
verbose: u8,
#[arg(short = 'e', long, help = "Output a full, commented config file and exit")]
create: bool,
}
2025-02-11 23:32:28 -07:00
fn main() {
2025-02-15 22:11:08 -07:00
let args = Args::parse();
let cfg = config::read_config(args.config);
2025-02-11 23:32:28 -07:00
}