No Description
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.

help.js 962B

123456789101112131415161718192021222324252627
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.command = void 0;
  4. const clc = require("colorette");
  5. const command_1 = require("../command");
  6. const logger_1 = require("../logger");
  7. const utils = require("../utils");
  8. exports.command = new command_1.Command("help [command]")
  9. .description("display help information")
  10. .action(function (commandName) {
  11. const client = this.client;
  12. const cmd = client.getCommand(commandName);
  13. if (cmd) {
  14. cmd.outputHelp();
  15. }
  16. else if (commandName) {
  17. logger_1.logger.warn();
  18. utils.logWarning(clc.bold(commandName) + " is not a valid command. See below for valid commands");
  19. client.cli.outputHelp();
  20. }
  21. else {
  22. client.cli.outputHelp();
  23. logger_1.logger.info();
  24. logger_1.logger.info(" To get help with a specific command, type", clc.bold("firebase help [command_name]"));
  25. logger_1.logger.info();
  26. }
  27. });