Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | "use strict";
|
---|
2 | /**
|
---|
3 | * @license
|
---|
4 | * Copyright Google LLC All Rights Reserved.
|
---|
5 | *
|
---|
6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
7 | * found in the LICENSE file at https://angular.io/license
|
---|
8 | */
|
---|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
10 | exports.AwesomeCommand = void 0;
|
---|
11 | const command_1 = require("../models/command");
|
---|
12 | const color_1 = require("../utilities/color");
|
---|
13 | function pickOne(of) {
|
---|
14 | return of[Math.floor(Math.random() * of.length)];
|
---|
15 | }
|
---|
16 | class 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 | }
|
---|
31 | exports.AwesomeCommand = AwesomeCommand;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.