UNPKG

1.1 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.AwesomeCommand = void 0;
4/**
5 * @license
6 * Copyright Google Inc. All Rights Reserved.
7 *
8 * Use of this source code is governed by an MIT-style license that can be
9 * found in the LICENSE file at https://angular.io/license
10 */
11const command_1 = require("../models/command");
12const color_1 = require("../utilities/color");
13function pickOne(of) {
14 return of[Math.floor(Math.random() * of.length)];
15}
16class AwesomeCommand extends command_1.Command {
17 async run() {
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(color_1.colors.green(phrase));
29 }
30}
31exports.AwesomeCommand = AwesomeCommand;