Use clap for git-solo
This commit is contained in:
parent
7b3a10890d
commit
b0067e9115
|
|
@ -1,16 +1,16 @@
|
|||
use clap::Parser;
|
||||
use git_mob::{
|
||||
ensure_commit_template_is_set, get_main_author, with_gitmessage_template_path_or_exit,
|
||||
};
|
||||
use std::fs::File;
|
||||
use structopt::StructOpt;
|
||||
|
||||
#[derive(StructOpt)]
|
||||
#[structopt(name="git-solo")]
|
||||
/// Disband the mob and continue working solo
|
||||
#[derive(Parser, Debug)]
|
||||
#[clap(name = "git-solo", version)]
|
||||
/// Disband the mob and continue working solo.
|
||||
struct Opt {}
|
||||
|
||||
fn main() {
|
||||
let _opt = Opt::from_args();
|
||||
let _opt = Opt::parse();
|
||||
let main_author = get_main_author();
|
||||
println!("{}", main_author);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue