gitclass 0.5.0

Tool for teachers to manage classes using git
Documentation
#[macro_use]
extern crate clap;
extern crate gitclass;
use gitclass::*;
use clap::App;

fn main() {
    let yaml = load_yaml!("cli.yml");
    let matches = App::from_yaml(yaml).get_matches();
    if let Some(new_m) = matches.subcommand_matches("new") {
        match new_m.value_of("DIR") {
            Some(p) => new(p),
            _ => panic!("Need a directory, idiot")
        };
    }
    if let Some(init_m) = matches.subcommand_matches("init") {
        init("./");
    }
    if let Some(add_m) = matches.subcommand_matches("add") {
        add();
    }
    if let Some(rem_m) = matches.subcommand_matches("remove") {
        match rem_m.value_of("STUDENT") {
            Some(s) => remove(s),
            _ => panic!("No student provided")
        }
    }
    if let Some(up_m) = matches.subcommand_matches("update") {
        update();
    }
}