UNPKG

listr2-toolkit

Version:

Batteries for Listr2

28 lines 1.05 kB
import { Toolkit, Worker } from "listr2-scheduler"; export { schedule, Worker } from "listr2-scheduler"; type RunOptions = { readonly reject?: boolean; readonly timestamp?: boolean; readonly cwd?: string; }; type ReadOptions = { readonly reject?: boolean | "status" | "stderr"; readonly cwd?: string; }; type ToolkitLogger = { (...args: unknown[]): void; e(...args: unknown[]): void; v(...args: unknown[]): void; }; declare module "listr2-scheduler" { interface Toolkit { log: ToolkitLogger; run(command: string, options?: RunOptions): Promise<number>; run(file: string, arguments: string[], options?: RunOptions): Promise<number>; read(command: string, options?: ReadOptions): Promise<string>; read(file: string, arguments: string[], options?: ReadOptions): Promise<string>; } } export declare function attach(worker: Worker): Toolkit; export declare function selectPrinter(args: string[], forceVerbose?: unknown): "verbose" | "vivid"; //# sourceMappingURL=index.d.ts.map