Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export const dockerCommand = async (
options: IOptions = {
currentWorkingDirectory: undefined,
echo: true,
env: undefined,
machineName: undefined,
},
) => {
Expand All @@ -192,6 +193,7 @@ export const dockerCommand = async (
DEBUG: "",
HOME: process.env.HOME,
PATH: process.env.PATH,
...options.env,
},
maxBuffer: 200 * 1024 * 1024,
};
Expand Down Expand Up @@ -236,6 +238,7 @@ export class Docker {
private options: IOptions = {
currentWorkingDirectory: undefined,
echo: true,
env: undefined,
machineName: undefined,
},
) {}
Expand All @@ -249,12 +252,14 @@ export interface IOptions {
machineName?: string;
currentWorkingDirectory?: string;
echo?: boolean;
env?: NodeJS.ProcessEnv;
}

export class Options implements IOptions {
public constructor(
public machineName?: string,
public currentWorkingDirectory?: string,
public echo: boolean = true,
public env?: NodeJS.ProcessEnv,
) {}
}