gitnu 0.1.2

gitnu indexes your git status so you can use numbers instead of filenames.
Documentation
mod files;
mod opts;
mod range;
mod shell;
mod status;
use opts::{OpType, Opts};

pub fn run(args: Vec<String>, opts: Opts) {
    match opts.op {
        OpType::Status => {
            status::run(opts);
        }
        _ => match opts.run(args) {
            _ => (),
        },
    }
}

// receives CLI arguments, returns parsed arguments to pass to git
pub fn core(args: Vec<String>) -> (Vec<String>, Opts) {
    let (opts, args) = opts::get(&args);
    let mut args = range::load(args); // parse ranges
    files::load(&mut args, &opts); // insert filenames

    log::info!("parsed args {:?}", args);
    (args, opts)
}