pub fn color(text: &str, code: &str, use_color: bool) -> String
Wrap text in ANSI color codes if use_color is true.