UNPKG

1.12 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const Command = require('../ember-cli/lib/models/command');
4const stringUtils = require('ember-cli-string-utils');
5const chalk = require("chalk");
6function pickOne(of) {
7 return of[Math.floor(Math.random() * of.length)];
8}
9const MakeThisAwesomeCommand = Command.extend({
10 name: 'make-this-awesome',
11 works: 'insideProject',
12 run: function (commandOptions, rawArgs) {
13 this[stringUtils.camelize(this.name)](commandOptions, rawArgs);
14 return Promise.resolve();
15 },
16 makeThisAwesome: function () {
17 const phrase = pickOne([
18 `You're on it, there's nothing for me to do!`,
19 `Let's take a look... nope, it's all good!`,
20 `You're doing fine.`,
21 `You're already doing great.`,
22 `Nothing to do; already awesome. Exiting.`,
23 `Error 418: As Awesome As Can Get.`
24 ]);
25 console.log(chalk.green(phrase));
26 }
27});
28exports.default = MakeThisAwesomeCommand;
29//# sourceMappingURL=/users/hans/sources/angular-cli/commands/easter-egg.js.map
\No newline at end of file