Skip to content

Commit

Permalink
- Added support for date.
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennenoel committed Apr 13, 2024
1 parent db3eaa8 commit 94acd11
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/cli/src/managers/shell.manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,15 @@ export class ShellManager {
const start = new Date();

if(outputTimeBeforeExecutingCommand) {
this.consoleManager.writeLine(start.toISOString());
if(outputStdout) {
this.consoleManager.writeLine(start.toISOString() + " - " + finalCommand);
} else {
this.consoleManager.writeLine(start.toISOString());
}
} else {
outputStdout && this.consoleManager.writeLine(finalCommand);
}

this.consoleManager.writeLine(finalCommand);

if(streamStdout) {
const child = spawn(finalCommand, [], { shell: true, env });
Expand Down

0 comments on commit 94acd11

Please sign in to comment.