zola/src/bin/console.rs

20 lines
384 B
Rust
Raw Normal View History

2017-03-25 06:52:51 +00:00
use term_painter::ToStyle;
use term_painter::Color::*;
pub fn info(message: &str) {
println!("{}", NotSet.bold().paint(message));
}
2017-05-08 10:29:37 +00:00
pub fn warn(message: &str) {
println!("{}", Yellow.bold().paint(message));
}
2017-03-25 06:52:51 +00:00
pub fn success(message: &str) {
println!("{}", Green.bold().paint(message));
}
pub fn error(message: &str) {
println!("{}", Red.bold().paint(message));
}