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.

20 lines
384B

  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 warn(message: &str) {
  7. println!("{}", Yellow.bold().paint(message));
  8. }
  9. pub fn success(message: &str) {
  10. println!("{}", Green.bold().paint(message));
  11. }
  12. pub fn error(message: &str) {
  13. println!("{}", Red.bold().paint(message));
  14. }