Skip to content

Commit

Permalink
chore: handle more events
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Nov 10, 2023
1 parent b2f63ee commit 2001091
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sfCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,12 @@ export abstract class SfCommand<T> extends Command {
}

public async _run<R>(): Promise<R> {
process.on('SIGINT', () => {
this.exit(130);
['SIGINT', 'SIGTERM', 'SIGBREAK', 'SIGHUP'].map((listener) => {
process.on(listener, () => {
this.exit(130);
});
});

this.configAggregator = await ConfigAggregator.create();

if (this.statics.requiresProject) {
Expand Down

0 comments on commit 2001091

Please sign in to comment.