cli

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

commit ee607e0bbe66361a70c32146c785870a9bd912ca
parent 3de1a1d29735b42f66f2737ce47a965b74ade2ad
Author: triesap <tyson@radroots.org>
Date:   Fri, 17 Apr 2026 16:18:52 +0000

align readme and help with current cli surface

Diffstat:
Msrc/cli.rs | 6+++---
Mtests/help.rs | 31+++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 3 deletions(-)

diff --git a/src/cli.rs b/src/cli.rs @@ -85,7 +85,7 @@ Examples: radroots setup buyer radroots setup both -This workflow layer is being added over the existing account, local, and farm commands. +This workflow layer sits on top of the existing account, local, and farm commands. "; const STATUS_HELP: &str = "\ @@ -94,7 +94,7 @@ Examples: radroots doctor radroots config show -This workflow summary is being added over the existing readiness and configuration surfaces. +This workflow summary reflects the current readiness and configuration surfaces. "; const ACCOUNT_HELP: &str = "\ @@ -1086,7 +1086,7 @@ pub enum OrderCommand { Submit(OrderSubmitArgs), #[command(about = "Watch a submitted order")] Watch(OrderWatchArgs), - #[command(about = "Cancel a submitted order")] + #[command(about = "Explain durable order cancel availability")] Cancel(RecordKeyArgs), #[command(about = "Show submitted order history")] History, diff --git a/tests/help.rs b/tests/help.rs @@ -28,6 +28,36 @@ fn root_help_is_workflow_grouped() { } #[test] +fn setup_help_describes_the_landed_workflow_layer() { + let output = help_command() + .args(["setup", "--help"]) + .output() + .expect("run setup help"); + + assert!(output.status.success()); + let stdout = String::from_utf8(output.stdout).expect("utf8 stdout"); + assert!(stdout.contains( + "This workflow layer sits on top of the existing account, local, and farm commands." + )); + assert!(!stdout.contains("being added")); +} + +#[test] +fn status_help_describes_current_readiness_surfaces() { + let output = help_command() + .args(["status", "--help"]) + .output() + .expect("run status help"); + + assert!(output.status.success()); + let stdout = String::from_utf8(output.stdout).expect("utf8 stdout"); + assert!(stdout.contains( + "This workflow summary reflects the current readiness and configuration surfaces." + )); + assert!(!stdout.contains("being added")); +} + +#[test] fn account_help_prefers_human_first_aliases() { let output = help_command() .args(["account", "--help"]) @@ -124,4 +154,5 @@ fn order_help_prefers_create_view_and_list() { assert!(stdout.contains("history")); assert!(stdout.contains("radroots order submit ord_demo --watch")); assert!(stdout.contains("Compatibility aliases: new, get, ls.")); + assert!(stdout.contains("durable order cancel availability")); }