mpr 0.4.2

The official command-line interface for the makedeb Package Repository
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use ansi_term::{Colour, Style};

pub fn info(str: &str) {
    println!("{}", str);
}

pub fn error(str: &str) {
    println!("{} {}", Colour::Red.paint("Err:"), str);
}

pub fn error_bold(str: &str) {
    println!(
        "{} {}",
        Colour::Red.paint("Err:"),
        Style::new().bold().paint(str)
    );
}