import { injectable } from "inversify" ; import * as cp from "child_process" ; import * as cp_async from "child-process-promise" ; import { SpawnOptions } from "child_process" ; @ injectable ( ) export class CpProxy { public spawn ( command , args ? , options ? ) { return cp . spawn ( command , args , options ) ; } public execFileAsync ( file , args ? ) { return cp_async . execFile ( file , args ) ; } public execAsync ( path ) { return cp_async . exec ( path ) ; } }