mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
Remove calls to process.exit() which forces async calls to exit early (#15)
* Update invocations of inquirer.js prompts to output prompt to stderr. fixes #7 * Updates to use updated typings from @types/inquirer * Removes extraneous async / await from writeLn
This commit is contained in:
parent
04b63d16ee
commit
87be2e86fa
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit e5db01083cc13df3696bb30562a83d729280ac03
|
||||
Subproject commit c3ad9b9b7df2c70ea9a80627c3c4e263886eaf8b
|
@ -70,7 +70,7 @@ export class Program {
|
||||
program.on('command:*', () => {
|
||||
writeLn(chalk.redBright('Invalid command: ' + program.args.join(' ')));
|
||||
writeLn('See --help for a list of available commands.', true);
|
||||
process.exit(1);
|
||||
process.exitCode = 1;
|
||||
});
|
||||
|
||||
program.on('--help', () => {
|
||||
@ -502,7 +502,7 @@ export class Program {
|
||||
writeLn(chalk.redBright(response.message), true);
|
||||
}
|
||||
}
|
||||
process.exit(1);
|
||||
process.exitCode = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -529,7 +529,8 @@ export class Program {
|
||||
writeLn(out, true);
|
||||
}
|
||||
}
|
||||
process.exit();
|
||||
process.exitCode = 0;
|
||||
|
||||
}
|
||||
|
||||
private getJson(obj: any): string {
|
||||
|
Loading…
Reference in New Issue
Block a user