@thi.ng/args
Version:
Declarative, functional CLI argument/options parser, app framework, arg value coercions, multi/sub-commands, usage generation, error handling etc.
12 lines • 601 B
TypeScript
import { type ILogger } from "@thi.ng/logger/api";
import type { CLIAppConfig, CommandCtx } from "./api.js";
export declare const cliApp: <OPTS extends object, CTX extends CommandCtx<OPTS, OPTS>>(config: CLIAppConfig<OPTS, CTX>) => Promise<void>;
/**
* Calls `tput cols` to obtain the number of columns in the current
* terminal. Returns `fallback` in case of error.
*
* @param fallback
*/
export declare const terminalLineWidth: (fallback?: number) => number;
export declare const configureLogLevel: (logger: ILogger, verbose: boolean, quiet?: boolean) => void;
//# sourceMappingURL=cli.d.ts.map