UNPKG

@stacksjs/cli

Version:

TypeScript framework for CLI artisans. Build beautiful console apps with ease.

5 lines (4 loc) 436 B
import type { CliOptions, Subprocess } from '@stacksjs/types'; export declare function exec(command: string | string[], options?: CliOptions): Promise<Result<Subprocess, Error>>; export declare function execSync(command: string | string[], options?: CliOptions): Promise<string>; declare function exitHandler(type: 'spawn' | 'spawnSync', subprocess: Subprocess, exitCode: number | null, signalCode: number | null, error?: Error): void;