From 38a18180eb5ec1c22b8bec427034750b546b148a Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Tue, 2 Feb 2021 00:55:41 +0300 Subject: [PATCH] chore(cli): add unimplemented commands --- migra-cli/src/main.rs | 2 +- migra-cli/src/opts.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/migra-cli/src/main.rs b/migra-cli/src/main.rs index 6619206..029112f 100644 --- a/migra-cli/src/main.rs +++ b/migra-cli/src/main.rs @@ -36,7 +36,7 @@ fn main() -> Result<(), Box> { } } } - Command::List => { + Command::List | Command::Upgrade | Command::Downgrade => { unimplemented!(); } } diff --git a/migra-cli/src/opts.rs b/migra-cli/src/opts.rs index de4a90f..84424e2 100644 --- a/migra-cli/src/opts.rs +++ b/migra-cli/src/opts.rs @@ -19,6 +19,12 @@ pub(crate) enum Command { #[structopt(name = "list", visible_alias = "ls")] List, + + #[structopt(name = "upgrade", visible_alias = "up")] + Upgrade, + + #[structopt(name = "downgrade", visible_alias = "down")] + Downgrade, } #[derive(Debug, StructOpt)]