@re-shell/cli
Version:
Full-stack development platform uniting microservices and microfrontends. Build complete applications with .NET (ASP.NET Core Web API, Minimal API), Java (Spring Boot, Quarkus, Micronaut, Vert.x), Rust (Actix-Web, Warp, Rocket, Axum), Python (FastAPI, Dja
32 lines (31 loc) • 1.28 kB
TypeScript
import { ProgressSpinner } from './spinner';
export declare class CLIError extends Error {
code: string;
exitCode: number;
originalError?: Error;
constructor(message: string, code?: string, exitCode?: number, originalError?: Error);
}
export declare class NetworkError extends CLIError {
constructor(message: string, originalError?: Error);
}
export declare class FileSystemError extends CLIError {
constructor(message: string, originalError?: Error);
}
export declare class ValidationError extends CLIError {
constructor(message: string);
}
declare class ProcessManager {
private static instance;
private cleanup;
private isExiting;
private constructor();
static getInstance(): ProcessManager;
addCleanup(fn: () => void): void;
private setupSignalHandlers;
}
declare const processManager: ProcessManager;
export declare function withTimeout<T>(operation: () => Promise<T>, timeoutMs?: number, retries?: number): Promise<T>;
export declare function handleError(error: Error, spinner?: ProgressSpinner): never;
export declare function createAsyncCommand<T extends any[]>(fn: (...args: T) => Promise<void>): (...args: T) => Promise<void>;
export declare function setupStreamErrorHandlers(): void;
export { processManager };