git-delete-coauthor

This commit is contained in:
Martin Frost 2020-05-23 16:30:46 +02:00
parent 8e46759b0a
commit c69cc0a9bc
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
use git_mob::{get_available_coauthors, write_coauthors_file} ;
use structopt::StructOpt;
#[derive(StructOpt,Debug)]
struct Opt {
/// Initials of the co-author to delete
initials: String,
}
fn main() {
let opt = Opt::from_args();
let mut authors = get_available_coauthors();
authors.remove(&opt.initials);
write_coauthors_file(authors);
}