UNPKG

backport

Version:

A CLI tool that automates the process of backporting commits

21 lines (20 loc) 723 B
import childProcess from 'node:child_process'; type SpawnErrorContext = { cmdArgs: ReadonlyArray<string>; code: number; stderr: string; stdout: string; }; export declare class SpawnError extends Error { context: SpawnErrorContext; constructor(context: SpawnErrorContext); } type SpawnPromiseResponse = { cmdArgs: ReadonlyArray<string>; code: number | null; stderr: string; stdout: string; }; export declare function spawnPromise(cmd: string, cmdArgs: ReadonlyArray<string>, cwd: string, isInteractive?: boolean): Promise<SpawnPromiseResponse>; export declare const spawnStream: (cmd: string, cmdArgs: ReadonlyArray<string>) => childProcess.ChildProcessWithoutNullStreams; export {};