1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const Command = require('../ember-cli/lib/models/command');
|
4 | const stringUtils = require('ember-cli-string-utils');
|
5 | const chalk = require("chalk");
|
6 | function pickOne(of) {
|
7 | return of[Math.floor(Math.random() * of.length)];
|
8 | }
|
9 | const 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 | });
|
28 | exports.default = MakeThisAwesomeCommand;
|
29 |
|
\ | No newline at end of file |