From 3ef7ec0d9f07f44caa69995a4bfcc082aa26bbf8 Mon Sep 17 00:00:00 2001 From: Dhanji Prasanna Date: Fri, 10 Oct 2025 13:38:38 +1100 Subject: [PATCH] colorize --- crates/g3-cli/src/ui_writer_impl.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/g3-cli/src/ui_writer_impl.rs b/crates/g3-cli/src/ui_writer_impl.rs index 48c2396..289870b 100644 --- a/crates/g3-cli/src/ui_writer_impl.rs +++ b/crates/g3-cli/src/ui_writer_impl.rs @@ -60,7 +60,7 @@ impl UiWriter for ConsoleUiWriter { } fn print_tool_output_header(&self) { - // Now print the tool header with the most important arg + // Now print the tool header with the most important arg in bold green if let Some(tool_name) = self.current_tool_name.lock().unwrap().as_ref() { let args = self.current_tool_args.lock().unwrap(); @@ -77,9 +77,11 @@ impl UiWriter for ConsoleUiWriter { } else { value.clone() }; - println!("┌─ {} | {}", tool_name, display_value); + // Print with bold green formatting using ANSI escape codes + println!("\x1b[1;32m┌─ {} | {}\x1b[0m", tool_name, display_value); } else { - println!("┌─ {}", tool_name); + // Print with bold green formatting using ANSI escape codes + println!("\x1b[1;32m┌─ {}\x1b[0m", tool_name); } // Print any additional arguments (optional - can be removed if not wanted)