summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-06-22 17:45:10 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-06-23 08:21:51 +0200
commitc84f183867da4423d219b65474e9271b33128a63 (patch)
tree509000f4f6ee7ea475e1e7b9c7ad501d161aa62a
parentb39f15d9f7ed589b9078dd9b1f7003c69de74f32 (diff)
Add CLI spec for "endpoint images" subcommand
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r--src/cli.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index a8b0cc1..f8ad1c4 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1214,6 +1214,32 @@ pub fn cli<'a>() -> App<'a> {
.long_about("Display details about the container. Do not assume the output format to be stable.")
)
)
+ .subcommand(App::new("images")
+ .version(crate_version!())
+ .about("Query images on endpoint(s)")
+ .subcommand(App::new("list")
+ .version(crate_version!())
+ .about("List images on endpoint(s)")
+ .arg(Arg::new("csv")
+ .required(false)
+ .multiple(false)
+ .long("csv")
+ .takes_value(false)
+ .about("List top output as CSV")
+ )
+ )
+ .subcommand(App::new("verify-present")
+ .version(crate_version!())
+ .about("Verify that all configured images are present on endpoint(s)")
+ .arg(Arg::new("csv")
+ .required(false)
+ .multiple(false)
+ .long("csv")
+ .takes_value(false)
+ .about("List top output as CSV")
+ )
+ )
+ )
)
}