pub fn statement(text: &str, role: Option<&str>) -> StringExpand description
Colors text based on its role, defaulting to statement color if no role is specified.
§Arguments
text- The text to be coloredrole- Optional role to determine color choice. If None, uses statement color
§Returns
String- The colored text string
§Examples
use ares::cli_pretty_printing::statement;
let info = statement("Status update", Some("informational"));
let neutral = statement("Regular text", None);
assert!(!info.is_empty());
assert!(!neutral.is_empty());