Skip to content

Commit 27d3940

Browse files
committed
fix: check if interactive before attaching key commands
1 parent bfda34c commit 27d3940

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lib/commands/run.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ export class RunCommandBase implements ICommand {
4040
this.liveSyncCommandHelperAdditionalOptions
4141
);
4242

43-
this.$keyCommandHelper.attachKeyCommands(
44-
this.platform as IKeyCommandPlatform,
45-
"run"
46-
);
43+
if (process.env.NS_IS_INTERACTIVE) {
44+
this.$keyCommandHelper.attachKeyCommands(
45+
this.platform as IKeyCommandPlatform,
46+
"run"
47+
);
48+
}
4749
}
4850

4951
public async canExecute(args: string[]): Promise<boolean> {

lib/services/start-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default class StartService implements IStartService {
4545
env: {
4646
FORCE_COLOR: 1,
4747
HIDE_HEADER: true,
48+
NS_IS_INTERACTIVE: true,
4849
...process.env,
4950
},
5051
}

0 commit comments

Comments
 (0)