From 8d8751655f1fbf990244d53fe0110731c68da07a Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 15 May 2023 20:54:19 +0200 Subject: [PATCH] cli: Add `rad node events` command Allows third party implementations to listen to the event stream of a node. In case of a serialization error we exit the event subscription and end the process. Signed-off-by: Sebastian Martinez --- radicle-cli/src/commands/node.rs | 11 +++++++++++ radicle-cli/src/commands/node/events.rs | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 radicle-cli/src/commands/node/events.rs diff --git a/radicle-cli/src/commands/node.rs b/radicle-cli/src/commands/node.rs index df89d539..14a71156 100644 --- a/radicle-cli/src/commands/node.rs +++ b/radicle-cli/src/commands/node.rs @@ -9,6 +9,8 @@ use crate::terminal::args::{Args, Error, Help}; #[path = "node/control.rs"] mod control; +#[path = "node/events.rs"] +mod events; #[path = "node/routing.rs"] mod routing; #[path = "node/tracking.rs"] @@ -21,6 +23,7 @@ pub const HELP: Help = Help { usage: r#" Usage + rad node events [