1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use colored::Colorize;

pub fn print_warning(message: &str) {
    println!("{}", pretty_warning(message));
}

pub fn print_error(message: &str) {
    println!("{}", pretty_error(message));
}

pub fn pretty_warning(message: &str) -> String {
    format!("{} {}", "[WARNING]".yellow(), message)
}

pub fn pretty_error(message: &str) -> String {
    format!("{} {}", "[ERROR]".red(), message)
}