Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat: add helper program to parse response messages
Lars Wirzenius committed 2 years ago
commit e529ffbb5c866e2270bc89dd343023251c36fdc6
parent f6d61de9a542e18cb124678c773752ff88670439
1 file changed +11 -0
added src/bin/parse-broker-messages.rs
@@ -0,0 +1,11 @@
+
use radicle_ci_broker::msg::Response;
+

+
fn main() {
+
    for line in std::io::stdin().lines() {
+
        let line = line.unwrap();
+
        let resp = Response::from_str(&line).unwrap();
+
        println!("{line}");
+
        println!("{resp:#?}");
+
        println!();
+
    }
+
}