git-delete-coauthor
This commit is contained in:
parent
8e46759b0a
commit
c69cc0a9bc
|
|
@ -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);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue