pub fn warning(msg: &str) -> String
Format a warning message with yellow warning sign.
Returns colored output if stdout is a TTY, plain text otherwise.