@travetto/exec
Advanced tools
Comparing version 0.0.30 to 0.0.31
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "0.0.30" | ||
"version": "0.0.31" | ||
} |
import { DockerContainer } from './docker'; | ||
import { AppEnv } from '@travetto/base'; | ||
import { spawn } from './util'; | ||
import { ChildProcess } from 'child_process'; | ||
import { ExecutionResult, CommonProcess } from './types'; | ||
@@ -28,3 +30,3 @@ export class CommandService { | ||
async exec(...args: string[]) { | ||
exec(...args: string[]) { | ||
let exec; | ||
@@ -38,5 +40,4 @@ if (this.container) { | ||
} | ||
const [proc, prom] = await exec; | ||
return [proc, prom]; | ||
return exec as [CommonProcess, Promise<ExecutionResult>]; | ||
} | ||
} |
@@ -195,3 +195,3 @@ import * as child_process from 'child_process'; | ||
async exec(flags?: string[], args?: string[]) { | ||
exec(flags?: string[], args?: string[]) { | ||
const { proc, prom } = this._cmd('exec', ...(flags || []), this.container, ...(args || [])); | ||
@@ -198,0 +198,0 @@ this._proc = proc; |
22348
708