diff --git a/src/bin/git-delete-coauthor.rs b/src/bin/git-delete-coauthor.rs new file mode 100644 index 0000000..4c8ef57 --- /dev/null +++ b/src/bin/git-delete-coauthor.rs @@ -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); +}