pub fn style(text: &str, code: &str, enabled: bool) -> String
Wrap text in the given ANSI SGR code when enabled, otherwise return text unchanged.
text
code
enabled