@travetto/exec
Advanced tools
Comparing version 0.0.29 to 0.0.30
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "0.0.29" | ||
"version": "0.0.30" | ||
} |
@@ -12,4 +12,4 @@ import { DockerContainer } from './docker'; | ||
imageStartCommand?: string; | ||
imageCommand: (args: string[]) => string[]; | ||
processCommand: (args: string[]) => string[]; | ||
imageCommand?: (args: string[]) => string[]; | ||
processCommand?: (args: string[]) => string[]; | ||
docker?: boolean; | ||
@@ -32,6 +32,6 @@ }) { } | ||
if (this.container) { | ||
const cmd = this.config.imageCommand(args); | ||
const cmd = this.config.imageCommand ? this.config.imageCommand(args) : args; | ||
exec = this.container.exec(['-i'], cmd); | ||
} else { | ||
const cmd = this.config.processCommand(args); | ||
const cmd = this.config.processCommand ? this.config.processCommand(args) : args; | ||
exec = spawn(cmd.join(' '), { quiet: true }); | ||
@@ -38,0 +38,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22256