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