@blitzjs/cli
Version:
Blitz.js CLI
24 lines (23 loc) • 960 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HelpCommand = void 0;
const tslib_1 = require("tslib");
const command_1 = require("@oclif/command");
const plugin_help_1 = (0, tslib_1.__importDefault)(require("@oclif/plugin-help"));
class HelpCommand extends command_1.Command {
run() {
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
const { flags, argv } = this.parse(HelpCommand);
const help = new plugin_help_1.default(this.config, { all: flags.all });
help.showHelp(argv);
});
}
}
exports.HelpCommand = HelpCommand;
HelpCommand.description = "Display help for <%= config.bin %>";
HelpCommand.aliases = ["h"];
HelpCommand.flags = {
all: command_1.flags.boolean({ description: "see all commands in CLI" }),
};
HelpCommand.args = [{ name: "command", required: false, description: "command to show help for" }];
HelpCommand.strict = false;