Browse Source

Merge pull request #509 from FreeMasen/fix-color

reset color in colorize
index-subcmd
Vincent Prouillet GitHub 5 years ago
parent
commit
0c25c23570
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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