angular-cli
Version:
CLI tool for Angular
29 lines • 1.13 kB
JavaScript
;
var Command = require('../ember-cli/lib/models/command');
var stringUtils = require('ember-cli-string-utils');
var chalk = require('chalk');
function pickOne(of) {
return of[Math.floor(Math.random() * of.length)];
}
var MakeThisAwesomeCommand = Command.extend({
name: 'make-this-awesome',
works: 'insideProject',
run: function (commandOptions, rawArgs) {
this[stringUtils.camelize(this.name)](commandOptions, rawArgs);
return Promise.resolve();
},
makeThisAwesome: function () {
var phrase = pickOne([
"You're on it, there's nothing for me to do!",
"Let's take a look... nope, it's all good!",
"You're doing fine.",
"You're already doing great.",
"Nothing to do; already awesome. Exiting.",
"Error 418: As Awesome As Can Get."
]);
console.log(chalk.green(phrase));
}
});
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = MakeThisAwesomeCommand;
//# sourceMappingURL=/Users/hans/Sources/angular-cli/packages/angular-cli/commands/easter-egg.js.map