1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const command_1 = require("../models/command");
|
4 | const core_1 = require("@angular-devkit/core");
|
5 | function pickOne(of) {
|
6 | return of[Math.floor(Math.random() * of.length)];
|
7 | }
|
8 | class AwesomeCommand extends command_1.Command {
|
9 | constructor() {
|
10 | super(...arguments);
|
11 | this.name = 'make-this-awesome';
|
12 | this.description = '';
|
13 | this.hidden = true;
|
14 | this.arguments = [];
|
15 | this.options = [];
|
16 | }
|
17 | run(_options) {
|
18 | const phrase = pickOne([
|
19 | `You're on it, there's nothing for me to do!`,
|
20 | `Let's take a look... nope, it's all good!`,
|
21 | `You're doing fine.`,
|
22 | `You're already doing great.`,
|
23 | `Nothing to do; already awesome. Exiting.`,
|
24 | `Error 418: As Awesome As Can Get.`,
|
25 | `I spy with my little eye a great developer!`,
|
26 | `Noop... already awesome.`
|
27 | ]);
|
28 | this.logger.info(core_1.terminal.green(phrase));
|
29 | }
|
30 | }
|
31 | exports.default = AwesomeCommand;
|
32 |
|
\ | No newline at end of file |