From ed9d61a07ac69b9bdaf649356622e2553d0ef72c Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 30 Aug 2021 13:22:04 +0200 Subject: Add CLI option to call find-artifacts subcommand with filter for image Signed-off-by: Matthias Beyer --- src/cli.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 37df36c..1c6bcb9 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -654,6 +654,15 @@ pub fn cli<'a>() -> App<'a> { .validator(env_pass_validator) .about("Filter for this \"key=value\" environment variable") ) + .arg(Arg::new("image") + .required(false) + .multiple(false) + .long("image") + .short('I') + .takes_value(true) + .value_name("IMAGE") + .about("Only list artifacts that were built on IMAGE") + ) ) .subcommand(App::new("find-pkg") -- cgit v1.2.3