cli

Command-line interface for Radroots
git clone https://radroots.dev/git/cli.git
Log | Files | Refs | README | LICENSE

commit aa67c90ce2dd4ad9d2822a7f61ecb7bb7b36f695
parent 422f1130ebf593d9d00a7c3e8a9fc9e80eb07c4f
Author: triesap <tyson@radroots.org>
Date:   Fri,  8 May 2026 17:47:30 +0000

cli: handle relay setup publish errors

- map relay setup failures to CLI network errors
- keep farm and listing publish adapters exhaustive
- preserve SDK publish error classification after active relay changes
- validate nested CLI format, check, and test gates

Diffstat:
Msrc/runtime/farm.rs | 1+
Msrc/runtime/listing.rs | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/runtime/farm.rs b/src/runtime/farm.rs @@ -1435,6 +1435,7 @@ fn map_sdk_farm_publish_error(error: SdkPublishError) -> RuntimeError { | SdkPublishError::UnsupportedTransport { .. } | SdkPublishError::UnsupportedSignerMode { .. } => RuntimeError::Config(message), SdkPublishError::Relay(_) + | SdkPublishError::RelaySetup { .. } | SdkPublishError::RelayNotAcknowledged { .. } | SdkPublishError::Radrootsd(_) => RuntimeError::Network(message), } diff --git a/src/runtime/listing.rs b/src/runtime/listing.rs @@ -1149,6 +1149,7 @@ fn map_sdk_listing_publish_error(error: SdkPublishError) -> RuntimeError { | SdkPublishError::UnsupportedTransport { .. } | SdkPublishError::UnsupportedSignerMode { .. } => RuntimeError::Config(message), SdkPublishError::Relay(_) + | SdkPublishError::RelaySetup { .. } | SdkPublishError::RelayNotAcknowledged { .. } | SdkPublishError::Radrootsd(_) => RuntimeError::Network(message), }