mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 21:55:20 +00:00
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:
parent
dc97b67dac
commit
3ef1c00cfb
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user