@travetto/exec
Advanced tools
Comparing version 0.3.10 to 0.3.11
@@ -30,4 +30,4 @@ { | ||
}, | ||
"version": "0.3.10", | ||
"gitHead": "268ba21b7baabf2650421828f15603ffad7374e9" | ||
"version": "0.3.11", | ||
"gitHead": "a00705e43a736686278b69b58225d49d970ad1cb" | ||
} |
@@ -68,2 +68,3 @@ import * as child_process from 'child_process'; | ||
public tty: boolean = false; | ||
public daemon: boolean = false; | ||
@@ -83,3 +84,3 @@ public volumes: { [key: string]: string } = {}; | ||
]).join(' '); | ||
const [proc, prom] = ExecUtil.spawn(cmd, { shell: false }); | ||
const [proc, prom] = ExecUtil.spawn(cmd, { shell: this.tty }); | ||
if (op !== 'run' && op !== 'exec') { | ||
@@ -125,2 +126,7 @@ prom.catch(e => { this.evict = true; }); | ||
addEnvVars(vars: { [key: string]: string }) { | ||
Object.assign(this.env, vars); | ||
return this; | ||
} | ||
addVolume(local: string, container: string) { | ||
@@ -151,2 +157,7 @@ this.volumes[local] = container; | ||
setDaemon(on: boolean) { | ||
this.daemon = on; | ||
return this; | ||
} | ||
getFlags(extra?: string[]) { | ||
@@ -169,2 +180,5 @@ const flags = []; | ||
} | ||
if (this.daemon) { | ||
flags.push('-d'); | ||
} | ||
for (const k of Object.keys(this.volumes)) { | ||
@@ -171,0 +185,0 @@ flags.push('-v', `${k}:${this.volumes[k]}`); |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
831
0
31218
20