UNPKG

@poppinss/cliui

Version:

Opinionated UI KIT for Command Line apps

37 lines (36 loc) 914 B
import type { Colors } from '@poppinss/colors/types'; import { type Task } from '../task.js'; import type { RendererContract } from '../../types.js'; /** * Verbose renderer shows a detailed output of the tasks and the * messages logged by a given task */ export declare class VerboseRenderer { #private; constructor(); /** * Returns the renderer for rendering the messages */ getRenderer(): RendererContract; /** * Define a custom renderer. Logs to "stdout" and "stderr" * by default */ useRenderer(renderer: RendererContract): this; /** * Returns the colors implementation in use */ getColors(): Colors; /** * Define a custom colors implementation */ useColors(color: Colors): this; /** * Register tasks to render */ tasks(tasks: Task[]): this; /** * Render all tasks */ render(): void; }