class DefaultPrinterService
implements PrinterService

Constructors

new
DefaultPrinterService(
stdoutWritableStream: WritableStream,
stderrWritableStream: WritableStream,
stdoutIsColor: boolean,
stderrIsColor: boolean,
stderrTerminal: Terminal,
styler: Styler,
)

Properties

writeonly
colorEnabled: boolean
writeonly
darkMode: boolean
readonly
colorEnabled: boolean
readonly
darkMode: boolean

Methods

blue(message: string): string
color(
message: string,
hexFormattedColor: string,
): string
cyan(message: string): string
debug(
message: string,
icon?: Icon,
): Promise<void>
emphasised(message: string): string
error(
message: string,
icon?: Icon,
): Promise<void>
green(message: string): string
hideAllProgressBars(): Promise<void>
hideProgressBar(handle: number): Promise<void>
hideSpinner(): Promise<void>
info(
message: string,
icon?: Icon,
): Promise<void>
italic(message: string): string
magenta(message: string): string
orange(message: string): string
primary(message: string): string
print(
message: string,
icon?: Icon,
): Promise<void>
red(message: string): string
secondary(message: string): string
selected(message: string): string
setLevel(level: Level): Promise<void>
showProgressBar(
units: string,
message?: string,
total?: number,
current?: number,
): Promise<number>
showSpinner(message?: string): Promise<void>
updateProgressBar(
handle: number,
current: number,
message?: string,
): void
violet(message: string): string
warn(
message: string,
icon?: Icon,
): Promise<void>
yellow(message: string): string