Last change
on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
997 bytes
|
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.HelpCommand = void 0;
|
---|
11 | const command_1 = require("../models/command");
|
---|
12 | const color_1 = require("../utilities/color");
|
---|
13 | class HelpCommand extends command_1.Command {
|
---|
14 | async run() {
|
---|
15 | this.logger.info(`Available Commands:`);
|
---|
16 | for (const cmd of Object.values(await command_1.Command.commandMap())) {
|
---|
17 | if (cmd.hidden) {
|
---|
18 | continue;
|
---|
19 | }
|
---|
20 | const aliasInfo = cmd.aliases.length > 0 ? ` (${cmd.aliases.join(', ')})` : '';
|
---|
21 | this.logger.info(` ${color_1.colors.cyan(cmd.name)}${aliasInfo} ${cmd.description}`);
|
---|
22 | }
|
---|
23 | this.logger.info(`\nFor more detailed help run "ng [command name] --help"`);
|
---|
24 | }
|
---|
25 | }
|
---|
26 | exports.HelpCommand = HelpCommand;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.