From 3ef1c00cfb0a680d0fb06839251660c23e1f0294 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Thu, 2 Apr 2020 18:04:17 +0200 Subject: [PATCH] ch-remote: Fix snapshot and restore subcommands So that they are listed and can be used as expected. Signed-off-by: Sebastien Boeuf --- src/bin/ch-remote.rs | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/bin/ch-remote.rs b/src/bin/ch-remote.rs index b04b156b0..9d61ca998 100644 --- a/src/bin/ch-remote.rs +++ b/src/bin/ch-remote.rs @@ -429,7 +429,25 @@ fn main() { ), ) .subcommand(SubCommand::with_name("resume").about("Resume the VM")) - .subcommand(SubCommand::with_name("shutdown").about("Shutdown the VM")); + .subcommand(SubCommand::with_name("shutdown").about("Shutdown the VM")) + .subcommand( + SubCommand::with_name("snapshot") + .about("Create a snapshot from VM") + .arg( + Arg::with_name("snapshot_config") + .index(1) + .help(""), + ), + ) + .subcommand( + SubCommand::with_name("restore") + .about("Restore VM from a snapshot") + .arg( + Arg::with_name("restore_config") + .index(1) + .help(""), + ), + ); let matches = app.get_matches();