mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
set exit code instead of exiting
This commit is contained in:
parent
2418e200ed
commit
6fbcfcad7b
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit e5db01083cc13df3696bb30562a83d729280ac03
|
Subproject commit d75543e6c88b220d8e3c7d66fb768d39f9480587
|
@ -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.exit(1);
|
process.exitCode = 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.exit(1);
|
process.exitCode = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -529,7 +529,7 @@ export class Program {
|
|||||||
writeLn(out, true);
|
writeLn(out, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
process.exit();
|
process.exitCode = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private getJson(obj: any): string {
|
private getJson(obj: any): string {
|
||||||
|
Loading…
Reference in New Issue
Block a user