docker-cli-js
Advanced tools
Comparing version 2.7.1 to 2.8.0
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
export declare const dockerCommand: (command: string, options?: IOptions) => Promise<any>; | ||
@@ -11,2 +12,3 @@ export declare class Docker { | ||
echo?: boolean; | ||
env?: NodeJS.ProcessEnv; | ||
} | ||
@@ -17,3 +19,4 @@ export declare class Options implements IOptions { | ||
echo: boolean; | ||
constructor(machineName?: string | undefined, currentWorkingDirectory?: string | undefined, echo?: boolean); | ||
env?: NodeJS.ProcessEnv | undefined; | ||
constructor(machineName?: string | undefined, currentWorkingDirectory?: string | undefined, echo?: boolean, env?: NodeJS.ProcessEnv | undefined); | ||
} |
@@ -158,2 +158,3 @@ "use strict"; | ||
echo: true, | ||
env: undefined, | ||
machineName: undefined, | ||
@@ -170,7 +171,3 @@ }) => __awaiter(this, void 0, void 0, function* () { | ||
cwd: options.currentWorkingDirectory, | ||
env: { | ||
DEBUG: "", | ||
HOME: process.env.HOME, | ||
PATH: process.env.PATH, | ||
}, | ||
env: Object.assign({ DEBUG: "", HOME: process.env.HOME, PATH: process.env.PATH }, options.env), | ||
maxBuffer: 200 * 1024 * 1024, | ||
@@ -203,2 +200,3 @@ }; | ||
echo: true, | ||
env: undefined, | ||
machineName: undefined, | ||
@@ -214,8 +212,9 @@ }) { | ||
class Options { | ||
constructor(machineName, currentWorkingDirectory, echo = true) { | ||
constructor(machineName, currentWorkingDirectory, echo = true, env) { | ||
this.machineName = machineName; | ||
this.currentWorkingDirectory = currentWorkingDirectory; | ||
this.echo = echo; | ||
this.env = env; | ||
} | ||
} | ||
exports.Options = Options; |
{ | ||
"name": "docker-cli-js", | ||
"version": "2.7.1", | ||
"version": "2.8.0", | ||
"description": "A node.js wrapper for the docker command line interface CLI", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
45640
236