ch-remote: Fix snapshot and restore subcommands

So that they are listed and can be used as expected.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2020-04-02 18:04:17 +02:00 committed by Rob Bradford
parent dc97b67dac
commit 3ef1c00cfb

View File

@ -429,7 +429,25 @@ fn main() {
), ),
) )
.subcommand(SubCommand::with_name("resume").about("Resume the VM")) .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("<destination_url>"),
),
)
.subcommand(
SubCommand::with_name("restore")
.about("Restore VM from a snapshot")
.arg(
Arg::with_name("restore_config")
.index(1)
.help("<source_url>"),
),
);
let matches = app.get_matches(); let matches = app.get_matches();