pimalaya-tui 0.2.2

Collection of crossterm widgets shared accross Pimalaya projects
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crossterm::style::Stylize;

pub fn warn(text: impl AsRef<str>) {
    println!("{}", text.as_ref().dark_yellow().bold());
}

pub fn question(text: impl AsRef<str>) {
    println!("{}", text.as_ref().italic());
}

pub fn section(text: impl AsRef<str>) {
    println!();
    println!("{}", text.as_ref().underlined());
    println!();
}