import { HelpDetail, HelpFormat } from "../output/formatter.mjs"; import { PadroneSchema } from "../types/schema.mjs"; import { WithCommand } from "../util/type-utils.mjs"; import { CommandTypesBase, PadroneCommand } from "../types/command.mjs"; //#region src/extension/help.d.ts type HelpArgs = { command?: string[]; detail?: HelpDetail; format?: HelpFormat; all?: boolean; }; type HelpCommand = PadroneCommand<'help', '', PadroneSchema, string, [], ['h', ''], false>; type WithHelp = WithCommand; /** * Extension that adds help support: * - `help` command with aliases `h` and `` (empty = executes on root when no subcommand matches) * - `--help` / `-h` flags * - ` help` reverse syntax * - Default help display when a command has no action * * Usage: * ```ts * createPadrone('my-cli').extend(padroneHelp()) * ``` */ declare function padroneHelp(): (builder: T) => WithHelp; //#endregion export { HelpCommand, WithHelp, padroneHelp }; //# sourceMappingURL=help.d.mts.map