dop-stick
Version:
Source control tooling for versionable-upgradeable smart contracts
30 lines • 802 B
TypeScript
import { Terminal } from './terminal';
export declare class TreeLogger {
private depth;
private branches;
/**
* Creates a new branch in the tree
*/
branch(text: string, callback: () => void): void;
/**
* Logs a tree item
*/
item(text: string, isLast?: boolean): void;
/**
* Logs a message with proper formatting
*/
private log;
/**
* Gets the proper prefix based on current depth
*/
private getPrefix;
/**
* Creates a colored tree item
*/
itemWithColor(text: string, color: keyof typeof Terminal.colors, isLast?: boolean): void;
/**
* Static method to format an array of strings into a tree structure
*/
static format(lines: string[]): string;
}
//# sourceMappingURL=treeLogger.d.ts.map