feat: add --json to cibtool event list
Add a –json option to allow “cibtool event list” to output JSON, for easier post-processing by other programs. Keep the –verbose, to avoid making a breaking change, but hide it from –help output.
Signed-off-by: Lars Wirzenius liw@liw.fi
4 files changed
+36
-12
2c70b462
→
dd043e01
modified ci-broker.md
@@ -632,10 +632,10 @@ given file broker.yaml
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified src/bin/cibtool.rs
@@ -29,7 +29,7 @@ use radicle_git_ext::Oid;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -265,6 +265,9 @@ enum CibToolError {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/bin/cibtoolcmd/event.rs
@@ -3,22 +3,42 @@ use super::*;
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/db.rs
@@ -16,6 +16,7 @@ use std::{
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -168,7 +169,7 @@ impl Db {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -485,7 +486,7 @@ impl<'a> Stmt<'a> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -522,7 +523,7 @@ impl QueueId {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|