UNPKG

tiny-bin

Version:

A library for building tiny and beautiful command line apps.

16 lines (15 loc) 523 B
import Addon from './addon.js'; import type Bin from './bin.js'; import type { LoggerHandler } from '../types.js'; declare class Logger extends Addon { protected handler: LoggerHandler; protected indentationLevel: number; protected indentation: string; constructor(bin: Bin, handler: LoggerHandler); indent(): void; dedent(): void; group(name: string, fn: () => void): void; print(message?: string): void; table(rows: string[][], mode?: 'lines' | 'line'): void; } export default Logger;