diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-02-28 20:58:17 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-02-28 20:58:17 +0200 |
commit | 84dde1be5e02c639f818a7b3f167d9d5b7c47a8c (patch) | |
tree | 2094488c09e0bbbdb46a8f332557e3aa4f64ab3e /src/bin | |
parent | 082e96cb2efb57f20b63e6908b8b28ff40119197 (diff) | |
download | vmadm-84dde1be5e02c639f818a7b3f167d9d5b7c47a8c.tar.gz |
feat: add a recreate subcommand
Sponsored-by: author
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/vmadm.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/vmadm.rs b/src/bin/vmadm.rs index ab01330..a693b96 100644 --- a/src/bin/vmadm.rs +++ b/src/bin/vmadm.rs @@ -28,6 +28,14 @@ enum Command { specs: Vec<PathBuf>, }, + Recreate { + #[structopt(flatten)] + common: CommonOptions, + + #[structopt(parse(from_os_str))] + specs: Vec<PathBuf>, + }, + Config { #[structopt(flatten)] common: CommonOptions, @@ -106,6 +114,12 @@ fn main() -> anyhow::Result<()> { cmd::new(&specs, &progress)?; } + Command::Recreate { common, specs } => { + let progress = get_progress(&common); + let specs = get_specs(&common, &specs)?; + cmd::recreate(&specs, &progress)?; + } + Command::Config { common } => { let progress = get_progress(&common); let config = config(&common)?; |