@donmccurdy/caporal
Version:
A full-featured framework for building command line applications (cli) with node.js
9 lines (8 loc) • 643 B
TypeScript
import type { TemplateContext } from "./types.js";
import type { Option, Argument } from "../types.js";
import type { Command } from "../command/index.js";
export declare function buildTable(data: string[][], options?: {}): string;
export declare function getDefaultValueHint(obj: Argument | Option): string | undefined;
export declare function getOptionsTable(options: Option[], ctx: TemplateContext, title?: string): string;
export declare function getArgumentsTable(args: Argument[], ctx: TemplateContext, title?: string): string;
export declare function getCommandsTable(commands: Command[], ctx: TemplateContext, title?: string): string;