(message, uglySuccessKeyword = "success")
| 911 | // A wrapper around Console.info. Prints the message out in green (if pretty), |
| 912 | // with the CHECKMARK as the bullet point in front of it. |
| 913 | success(message, uglySuccessKeyword = "success") { |
| 914 | var checkmark; |
| 915 | |
| 916 | if (! this._pretty) { |
| 917 | return this.info(`${message}: ${uglySuccessKeyword}`); |
| 918 | } |
| 919 | |
| 920 | if (process.platform === "win32") { |
| 921 | checkmark = chalk.green('SUCCESS'); |
| 922 | } else { |
| 923 | checkmark = chalk.green('\u2713'); // CHECKMARK |
| 924 | } |
| 925 | |
| 926 | return this.info( |
| 927 | chalk.green(message), |
| 928 | this.options({ bulletPoint: checkmark + " "})); |
| 929 | } |
| 930 | |
| 931 | // Wrapper around Console.info. Prints the message out in red (if pretty) |
| 932 | // with the BALLOT X as the bullet point in front of it. |
no test coverage detected