[][src]Function cli_kit::ansi::color_codes::red

pub fn red<T: ToString>(text: T, bold: bool, underline: bool) -> String

Take an item that implements ToString and return in red The second paramater is if it is bold true for bold false for nomal

Example


use cli_kit::ansi::color_codes::red;

fn main() {
    //underline
    println!("{}", red(5, false, true));
    // bold
    println!("{}", red(5, true, false));
    // normal
    println!("{}", red(5, false, false));
}