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

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

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

Example


use cli_kit::ansi::color_codes::yellow;

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