pub fn parse<S: AsRef<str>>(tags: S)Available on crate feature
std only.Expand description
Parse a tag string and print the styled result, followed by a newline.
Color depth matches the terminal detected for standard output; on a pipe, a
NO_COLOR environment, or a build without the color feature, the tags are
stripped and only their text is printed.
ยงExamples
use cli_forge::parse;
parse("<c=red><b>ERROR:</b></c> <c=#ff8800>disk almost full</c>");
parse("plain text with a stray < prints fine");