You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
302B

  1. use term_painter::ToStyle;
  2. use term_painter::Color::*;
  3. pub fn info(message: &str) {
  4. println!("{}", NotSet.bold().paint(message));
  5. }
  6. pub fn success(message: &str) {
  7. println!("{}", Green.bold().paint(message));
  8. }
  9. pub fn error(message: &str) {
  10. println!("{}", Red.bold().paint(message));
  11. }