filecoin-pin
Version:
Bridge IPFS content to Filecoin Onchain Cloud using familiar tools
59 lines • 1.49 kB
TypeScript
/**
* Logging utilities for consistent output across TTY and non-TTY environments
*
* Provides a unified interface for logging that:
* - Uses Clack's formatted output in TTY mode
* - Falls back to plain console.log in non-TTY mode
* - Maintains consistent indentation across all modes
*/
/**
* Check if we're in TTY mode
*/
declare function isTTY(): boolean;
/**
* Logger that adapts to TTY/non-TTY environments
*/
export { isTTY };
export declare const log: {
/**
* Log a plain message
*/
message(message: string): void;
/**
* Add a line to the buffer (for batched output in TTY mode)
*/
line(message: string): void;
/**
* Flush any buffered lines
*/
flush(): void;
/**
* Log an info message
*/
info(message: string): void;
/**
* Log a success message
*/
success(message: string): void;
/**
* Log a warning message
*/
warn(message: string): void;
/**
* Log a section with title and content
* In TTY mode, batches output to reduce vertical space
* In non-TTY mode, uses plain text
*/
section(title: string, content: string | string[]): void;
/**
* Log with custom indentation
* Adds to buffer in TTY mode for batched output
*/
indent(message: string, level?: number): void;
/**
* Log a blank line
* In TTY mode, just adds to buffer
*/
newline(): void;
};
//# sourceMappingURL=cli-logger.d.ts.map