UNPKG

firmament-yargs

Version:

Typescript classes for building CLI node applications

22 lines (19 loc) 1.31 kB
import {ChildProcess} from 'child_process'; import {ForceError} from './force-error'; import {SpawnOptions2} from '../custom-typings'; export interface Spawn extends ForceError { spawnShellCommandAsync(cmd: string[], options: SpawnOptions2, cbStatus: (err: Error, result: string) => void, cbFinal: (err: Error, result: string) => void, cbDiagnostic?: (message: string) => void): ChildProcess; sudoSpawnAsync(cmd: string[], options: SpawnOptions2, cbStatus: (err: Error, result: string) => void, cbFinal: (err: Error, result: string) => void, cbDiagnostic?: (message: string) => void): ChildProcess; installAptitudePackages(packageNames: string[], cb: (err: Error, result: string) => void): void; installAptitudePackages(packageNames: string[], withInteractiveConfirm: ((err: Error, result: string) => void)|boolean, cb?: (err: Error, result: string) => void): void; removeAptitudePackages(packageNames: string[], cb: (err: Error, result: string) => void): void; removeAptitudePackages(packageNames: string[], withInteractiveConfirm: ((err: Error, result: string) => void)|boolean, cb?: (err: Error, result: string) => void): void; }