Add migration subcommand

This commit is contained in:
Valentin Brandl
2019-07-07 14:52:42 +02:00
parent c5bbd14a05
commit c71925f61e
2 changed files with 48 additions and 3 deletions

View File

@@ -46,6 +46,14 @@ pub(crate) struct Opt {
)]
/// The logfile
pub(crate) logfile: PathBuf,
#[structopt(subcommand)]
pub(crate) migrate: Option<Migration>,
}
#[derive(StructOpt, Debug, Clone, Copy)]
pub(crate) enum Migration {
#[structopt(name = "migrate-commit-count")]
CacheCommitCount,
}
pub(crate) fn init() -> Result<()> {