summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-05-10 14:36:35 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-05-10 14:37:12 +0200
commitfc9635a3d392925f95175ab8a9c89a02debe269c (patch)
treed1bb252fc621896721194ec754a17ba578077a6d /src/cli.rs
parentb56aa86b161edf12f7d0b01c05e76758e3e8bd94 (diff)
Add subcommand "db log-of"
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 4c629f8..fc07a16 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -301,6 +301,18 @@ pub fn cli<'a>() -> App<'a> {
.arg(script_arg_highlight())
.arg(script_arg_no_highlight())
)
+ .subcommand(App::new("log-of")
+ .version(crate_version!())
+ .about("Print log of a job, short version of 'db job --log'")
+ .arg(Arg::new("job_uuid")
+ .required(true)
+ .multiple(false)
+ .index(1)
+ .takes_value(true)
+ .value_name("UUID")
+ .about("The id of the Job")
+ )
+ )
.subcommand(App::new("releases")
.version(crate_version!())
.about("List releases")