diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-07-12 13:21:10 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-07-12 13:21:10 +0300 |
commit | 7fa564f500af542771bda7bfada85366a2f47f35 (patch) | |
tree | 034c33f574ea0fd707ac3c5784ba82fb4ead0113 /src/bin | |
parent | 7d1836c4f9685bc67aeaf41ab6a7d2f43008288b (diff) | |
download | vmadm-7fa564f500af542771bda7bfada85366a2f47f35.tar.gz |
feat: add sub-command "config"
Sponsored-by: author
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/vmadm.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/vmadm.rs b/src/bin/vmadm.rs index 711bc98..897b145 100644 --- a/src/bin/vmadm.rs +++ b/src/bin/vmadm.rs @@ -27,6 +27,11 @@ enum Command { spec: PathBuf, }, + Config { + #[structopt(flatten)] + common: CommonOptions, + }, + List { #[structopt(flatten)] common: CommonOptions, @@ -85,6 +90,11 @@ fn main() -> anyhow::Result<()> { cmd::new(&specs)?; } + Command::Config { common } => { + let config = config(&common)?; + cmd::config(&config)?; + } + Command::List { common } => { let config = config(&common)?; cmd::list(&config)?; |