git-log/src/main.rs
2022-11-06 16:08:01 +01:00

18 lines
326 B
Rust

use clap::Parser;
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
struct Cli {
#[arg(short, long, required = true)]
path: String,
}
fn main() -> eyre::Result<()> {
let args = Cli::parse();
let log = gitlog_core::get_git_log(args.path)?;
println!("{}", log);
Ok(())
}