@launchql/cli
Version:
LaunchQL CLI
9 lines (8 loc) • 430 B
TypeScript
import { LaunchQLError } from '@launchql/types';
/**
* CLI error utility that logs error information and exits with code 1.
* Provides consistent error handling and user experience across all CLI commands.
*
* IMPORTANT: This function properly cleans up PostgreSQL connections before exiting.
*/
export declare const cliExitWithError: (error: LaunchQLError | Error | string, context?: Record<string, any>) => Promise<never>;