1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 22:33:35 +00:00

set exit code instead of exiting

This commit is contained in:
Kyle Spearrin
2018-06-20 14:42:21 -04:00
parent 2418e200ed
commit 6fbcfcad7b
2 changed files with 4 additions and 4 deletions

View File

@@ -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,7 @@ export class Program {
writeLn(out, true);
}
}
process.exit();
process.exitCode = 0;
}
private getJson(obj: any): string {