use structopt::StructOpt;
#[derive(Debug, StructOpt)]
#[structopt(name = "movine", about = "the simple migration manager")]
pub enum Opt {
#[structopt(name = "status")]
Status {},
#[structopt(name = "up")]
Up {
#[structopt(short = "n", long = "number")]
number: Option<usize>,
#[structopt(short = "p", long = "plan")]
show_plan: bool,
},
#[structopt(name = "down")]
Down {
#[structopt(short = "n", long = "number")]
number: Option<usize>,
#[structopt(short = "p", long = "plan")]
show_plan: bool,
#[structopt(short = "i", long = "ignore-divergent")]
ignore_divergent: bool,
},
#[structopt(name = "fix")]
Fix {
#[structopt(short = "p", long = "plan")]
show_plan: bool,
},
#[structopt(name = "redo")]
Redo {
#[structopt(short = "n", long = "number")]
number: Option<usize>,
#[structopt(short = "p", long = "plan")]
show_plan: bool,
},
#[structopt(name = "custom")]
Custom {
#[structopt(short = "p", long = "plan")]
show_plan: bool,
plan: Vec<String>,
},
#[structopt(name = "generate")]
Generate { name: String },
#[structopt(name = "init")]
Init {},
}