From f7c230a8efad78d05a005937f999810c26e4d583 Mon Sep 17 00:00:00 2001 From: Fabio Scaccabarozzi Date: Mon, 27 Oct 2025 23:10:20 +0000 Subject: [PATCH] Show read-only markers in CLI output (Option A) Changed DeviceState Display trait to use to_string_with_readonly_info() instead of to_string_with_padding(). This allows CLI users to see which features are hardware-limited before attempting to use them, providing helpful context and reducing confusion about why certain commands might not work. The tray application continues to use to_string_with_padding() since it's display-only and doesn't allow user interaction. Implements Option A as discussed in PR #14 --- src/devices/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/mod.rs b/src/devices/mod.rs index 13fcc2b..8a333ce 100644 --- a/src/devices/mod.rs +++ b/src/devices/mod.rs @@ -84,7 +84,7 @@ pub struct DeviceState { impl Display for DeviceState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "{}", self.to_string_with_padding(25)) + write!(f, "{}", self.to_string_with_readonly_info(25)) } }