pub fn style<S: Into<String>>(text: S) -> StyleAvailable on crate feature
std only.Expand description
Begin styling text.
The returned Style starts plain; chain color and attribute methods onto
it. text accepts anything convertible into a String, so both string
literals and owned Strings work.
ยงExamples
use cli_forge::style;
let warning = style("low disk space").yellow().bold();
// `Style` is `Display`, so it renders when printed or formatted.
assert!(warning.render().contains("low disk space"));