Add cli method to get no routes in myceliumd-private

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet committed 2025-04-24 14:23:15 +02:00
1 parent acaa03b8e0
commit 3b65b6f65d
1 file changed
+9
+9
View File
@@ -214,6 +214,12 @@ pub enum RoutesCommand {
#[arg(long = "json", default_value_t = false)]
json: bool,
},
/// Print all subnets which are explicitly marked as not having a route
NoRoute {
/// Print subnets in JSON format
#[arg(long = "json", default_value_t = false)]
json: bool,
},
}
#[derive(Debug, Args)]
@@ -606,6 +612,9 @@ async fn main() -> Result<(), Box<dyn Error>> {
RoutesCommand::Queried { json } => {
return mycelium_cli::list_queried_subnets(cli.node_args.api_addr, json).await;
}
RoutesCommand::NoRoute { json } => {
return mycelium_cli::list_no_route_entries(cli.node_args.api_addr, json).await;
}
},
},
}