zola/src/console.rs
Vincent Prouillet a02d50c22a Add some colours
2017-03-25 15:52:51 +09:00

16 lines
302 B
Rust

use term_painter::ToStyle;
use term_painter::Color::*;
pub fn info(message: &str) {
println!("{}", NotSet.bold().paint(message));
}
pub fn success(message: &str) {
println!("{}", Green.bold().paint(message));
}
pub fn error(message: &str) {
println!("{}", Red.bold().paint(message));
}