summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-06-07 15:39:00 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-06-07 15:39:00 +0200
commit810cc1c8281be8437ae0fd6257b2ea6190fe8d24 (patch)
tree33d458bce8c87e5adebf8fae64408a48468ecd27 /src/cli.rs
parent5e4107b554678dc7191631516a2ec5f5efdc416c (diff)
parent51b70e647230fb6df95dd3b0d35ce77409e73afb (diff)
Merge branch 'db-jobs-flags'
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 71a2b67..cdf35d3 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -289,6 +289,30 @@ pub fn cli<'a>() -> App<'a> {
.value_name("LIMIT")
.about("Only list newest LIMIT jobs instead of all")
)
+
+ .arg(arg_older_than_date("List only jobs older than DATE"))
+ .arg(arg_newer_than_date("List only jobs newer than DATE"))
+
+ .arg(Arg::new("endpoint")
+ .required(false)
+ .multiple(false)
+ .long("endpoint")
+ .short('e')
+ .takes_value(true)
+ .value_name("ENDPOINT")
+ .about("Only show jobs from ENDPOINT")
+ )
+
+ .arg(Arg::new("package")
+ .required(false)
+ .multiple(false)
+ .long("package")
+ .short('p')
+ .takes_value(true)
+ .value_name("PKG")
+ .about("Only show jobs for PKG")
+ )
+
)
.subcommand(App::new("job")