Skip to content

Commit 56ab798

Browse files
authored
Revert removal of cwd info
1 parent d618106 commit 56ab798

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/command.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ export class Command implements CommandInfo {
102102
/** @inheritdoc */
103103
readonly env: Record<string, unknown>;
104104

105+
/** @inheritdoc */
106+
readonly cwd?: string;
107+
105108
readonly close = new Rx.Subject<CloseEvent>();
106109
readonly error = new Rx.Subject<unknown>();
107110
readonly stdout = new Rx.Subject<Buffer>();
@@ -120,7 +123,7 @@ export class Command implements CommandInfo {
120123
}
121124

122125
constructor(
123-
{ index, name, command, prefixColor, env }: CommandInfo & { index: number },
126+
{ index, name, command, prefixColor, env, cwd }: CommandInfo & { index: number },
124127
spawnOpts: SpawnOptions,
125128
spawn: SpawnCommand,
126129
killProcess: KillProcess
@@ -130,6 +133,7 @@ export class Command implements CommandInfo {
130133
this.command = command;
131134
this.prefixColor = prefixColor;
132135
this.env = env || {};
136+
this.cwd = cwd;
133137
this.killProcess = killProcess;
134138
this.spawn = spawn;
135139
this.spawnOpts = spawnOpts;

0 commit comments

Comments
 (0)