UNPKG

@qodalis/angular-cli

Version:

A lightweight and flexible command-line interface (CLI) tool designed to streamline workflows and automate tasks for developers.

25 lines (24 loc) 991 B
import { Terminal } from '@xterm/xterm'; import { CliBackgroundColor, CliForegroundColor, ICliTerminalWriter } from '@qodalis/cli-core'; export declare class CliTerminalWriter implements ICliTerminalWriter { readonly terminal: Terminal; constructor(terminal: Terminal); write(text: string): void; writeln(text?: string): void; writeSuccess(message: string): void; writeInfo(message: string): void; writeWarning(message: string): void; writeError(message: string): void; private writeLog; writeDivider(options?: { color?: CliForegroundColor; length?: number; char?: string; }): void; wrapInColor(text: string, color: CliForegroundColor): string; wrapInBackgroundColor(text: string, color: CliBackgroundColor): string; writeJson(json: any): void; writeToFile(fileName: string, content: string): void; writeObjectsAsTable(objects: any[]): void; writeTable(headers: string[], rows: string[][]): void; }