Console success output should print on Windows cmd

This commit is contained in:
Steven Edouard
2016-01-14 01:33:58 -05:00
committed by Martijn Walraven
parent fd83e399fe
commit 8abbf3012f

View File

@@ -901,11 +901,18 @@ _.extend(Console.prototype, {
// with the CHECKMARK as the bullet point in front of it.
success: function (message) {
var self = this;
var checkmark;
if (! self._pretty) {
return self.info(message);
}
var checkmark = chalk.green('\u2713'); // CHECKMARK
if (process.platform === "win32") {
checkmark = chalk.green('SUCCESS');
} else {
checkmark = chalk.green('\u2713'); // CHECKMARK
}
return self.info(
chalk.green(message),
self.options({ bulletPoint: checkmark + " "}));