Merge pull request #509 from FreeMasen/fix-color
reset color in colorize
This commit is contained in:
commit
0c25c23570
|
@ -42,6 +42,7 @@ fn colorize(message: &str, color: &ColorSpec) {
|
||||||
let mut stdout = StandardStream::stdout(*COLOR_CHOICE);
|
let mut stdout = StandardStream::stdout(*COLOR_CHOICE);
|
||||||
stdout.set_color(color).unwrap();
|
stdout.set_color(color).unwrap();
|
||||||
writeln!(&mut stdout, "{}", message).unwrap();
|
writeln!(&mut stdout, "{}", message).unwrap();
|
||||||
|
stdout.set_color(&ColorSpec::new()).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Display in the console the number of pages/sections in the site
|
/// Display in the console the number of pages/sections in the site
|
||||||
|
|
Loading…
Reference in a new issue