Browse Source

reset color in colorize

index-subcmd
Robert Masen 5 years ago
parent
commit
1ec2694acc
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/console.rs

+ 1
- 0
src/console.rs View File

@@ -42,6 +42,7 @@ fn colorize(message: &str, color: &ColorSpec) {
let mut stdout = StandardStream::stdout(*COLOR_CHOICE);
stdout.set_color(color).unwrap();
writeln!(&mut stdout, "{}", message).unwrap();
stdout.set_color(&ColorSpec::new()).unwrap();
}

/// Display in the console the number of pages/sections in the site


Loading…
Cancel
Save