MCPcopy
hub / github.com/meteor/meteor / success

Method success

tools/console/console.js:913–929  ·  view source on GitHub ↗
(message, uglySuccessKeyword = "success")

Source from the content-addressed store, hash-verified

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.

Callers 2

amplify.jsFile · 0.80

Calls 2

infoMethod · 0.95
optionsMethod · 0.95

Tested by

no test coverage detected