Skip to content

Commit

Permalink
Merge pull request #730 from magieno/2024-11-replace-class-name-with-…
Browse files Browse the repository at this point in the history
…string

- Actually return the exit code.
  • Loading branch information
etiennenoel authored Nov 23, 2024
2 parents 88a1f1e + 9e0116a commit e2a7e41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const bootstrap = async () => {
const kernel = new Kernel();
await kernel.start(localAppModule, configuration);

await kernel.handle(process.argv, {keyname: ExecutionContextKeynameEnum.Cli, context: null})
await kernel.handle(process.argv, {keyname: ExecutionContextKeynameEnum.Cli, context: null});
}

bootstrap();
4 changes: 2 additions & 2 deletions packages/cli/src/event-handlers/cli.event-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export class CliEventHandler implements EventHandlerInterface<any, any>{
break;
}

this.consoleManager.writeLine("Command '" + event.payload.name + "' exited with code: '" + exitCode + "' (Status: '" + status + "')");
this.consoleManager.writeLine(`[status:'${status}', code:'${exitCode}'] - Command '` + event.payload.name + "' exited.");

return new CommandEventResponse(event, exitCode);
process.exit(exitCode);
}

supports(event: Event<any>): boolean {
Expand Down

0 comments on commit e2a7e41

Please sign in to comment.