jeeves 0.1.0

WIP: Automatically move or delete files
Documentation
use jeeves;
use std::path::PathBuf;
use structopt::StructOpt;

const DEFAULT_JEEVES_PATH: &str = ".jeeves.json";

#[derive(Debug, StructOpt)]
struct Opt {
    working_dir: Option<PathBuf>,
}

fn main() {
    let args = Opt::from_args();

    let f = std::fs::File::open(DEFAULT_JEEVES_PATH).unwrap();

    let data = serde_json::from_reader::<_, jeeves::Data>(f).unwrap();

    jeeves::run(args.working_dir.unwrap_or(PathBuf::from(".")), &data).unwrap();
}