20 lines
397 B
Rust
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())
|
|
}
|