UNPKG

vibe-tools

Version:
24 lines (23 loc) 891 B
/** * Output text to standard output and optionally save to a file * This function is used by commands to output content * * @param text - The text to output * @param options - Optional configuration * @param options.saveTo - Path to save output to (in addition to stdout) * @param options.quiet - Suppress stdout output (only useful with saveTo) * @param prefix - Optional prefix to add to the text */ export declare function yieldOutput(text: string, options: { saveTo?: string; quiet?: boolean; appendTo?: boolean; }, prefix?: string): Promise<void>; /** * Function to handle file output in a consistent manner * * @param outputPath - Path to save the file * @param content - Content to write to the file * @param type - Optional content type for logging */ export declare function saveToFile(outputPath: string, content: string, type?: string): Promise<void>;