GSI - Employe Self Service Mobile
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
962 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.command = void 0;
const clc = require("colorette");
const command_1 = require("../command");
const logger_1 = require("../logger");
const utils = require("../utils");
exports.command = new command_1.Command("help [command]")
.description("display help information")
.action(function (commandName) {
const client = this.client;
const cmd = client.getCommand(commandName);
if (cmd) {
cmd.outputHelp();
}
else if (commandName) {
logger_1.logger.warn();
utils.logWarning(clc.bold(commandName) + " is not a valid command. See below for valid commands");
client.cli.outputHelp();
}
else {
client.cli.outputHelp();
logger_1.logger.info();
logger_1.logger.info(" To get help with a specific command, type", clc.bold("firebase help [command_name]"));
logger_1.logger.info();
}
});