shoe/src/main.rs
2025-05-15 21:28:48 -05:00

20 lines
397 B
Rust

use clap::Parser;
use std::{path::PathBuf, process::exit};
mod build;
mod cli;
mod data;
fn main() {
build::completion_builder().unwrap();
let args = cli::Cli::parse();
let config_path: PathBuf = args.config;
if args.print_example_config {
println!("{}", data::example_config());
exit(0);
}
println!("Config path: {}", config_path.to_str().unwrap())
}