mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Revert "Remove calls to process.exit() which forces async calls to exit early (#15)"
This reverts commit 87be2e86fa.
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: c3ad9b9b7d...e5db01083c
@@ -70,7 +70,7 @@ export class Program {
|
|||||||
program.on('command:*', () => {
|
program.on('command:*', () => {
|
||||||
writeLn(chalk.redBright('Invalid command: ' + program.args.join(' ')));
|
writeLn(chalk.redBright('Invalid command: ' + program.args.join(' ')));
|
||||||
writeLn('See --help for a list of available commands.', true);
|
writeLn('See --help for a list of available commands.', true);
|
||||||
process.exitCode = 1;
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
program.on('--help', () => {
|
program.on('--help', () => {
|
||||||
@@ -502,7 +502,7 @@ export class Program {
|
|||||||
writeLn(chalk.redBright(response.message), true);
|
writeLn(chalk.redBright(response.message), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
process.exitCode = 1;
|
process.exit(1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -529,8 +529,7 @@ export class Program {
|
|||||||
writeLn(out, true);
|
writeLn(out, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
process.exitCode = 0;
|
process.exit();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private getJson(obj: any): string {
|
private getJson(obj: any): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user