Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ import { getVersions } from './utils/Version';
const { initConnectionProfiles } = frodo.conn;
const { initTokenCache } = frodo.cache;

// Override SIGINT (ctrl+c) to exit the program immediately. Exit code 130 is normally associated with SIGINT.
process.on('SIGINT', () => process.exit(130));

(async () => {
try {
// override default library output handlers with our own
Expand Down
2 changes: 1 addition & 1 deletion src/cli/admin/admin-federation-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function setup() {
'Unrecognized combination of options or no options...',
'error'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/admin/admin-federation-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function setup() {
// unrecognized combination of options or no options
else {
printMessage('Unrecognized combination of options or no options...');
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-gateway-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-gateway-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-gateway-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-java-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-java-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-java-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-web-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-web-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/agent/agent-web-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/app/app-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/app/app-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/app/app-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default function setup() {
// unrecognized combination of options or no options
else {
printMessage('Unrecognized combination of options or no options...');
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authn/authn-describe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-policy-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function setup() {
// unrecognized combination of options or no options
else {
printMessage('Unrecognized combination of options or no options...');
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-policy-describe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-policy-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-policy-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-policy-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-set-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function setup() {
// unrecognized combination of options or no options
else {
printMessage('Unrecognized combination of options or no options...');
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-set-describe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-set-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-set-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-type-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function setup() {
// unrecognized combination of options or no options
else {
printMessage('Unrecognized combination of options or no options...');
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-type-describe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-type-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz-type-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/cli/config/config-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default function setup() {
'-D or --directory required when using -A or --all-separate',
'error'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
// --all-separate -A
Expand Down Expand Up @@ -203,7 +203,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/cli/config/config-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function setup() {
// Require --file -f for all function
if (options.all && !options.file) {
printMessage('-f or --file required when using -a or --all', 'error');
program.help();
program.outputHelp();
process.exitCode = 1;
}
// --all -a
Expand All @@ -131,7 +131,7 @@ export default function setup() {
'-D or --directory required when using -A or --all-separate',
'error'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
// --all-separate -A
Expand Down Expand Up @@ -169,7 +169,7 @@ export default function setup() {
verboseMessage(
'Unrecognized combination of options or no options...'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/email/email-template-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function setup() {
'Unrecognized combination of options or no options...',
'error'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/email/email-template-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default function setup() {
'Unrecognized combination of options or no options...',
'error'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/esv/esv-secret-describe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function setup() {
'Unrecognized combination of options or no options...',
'error'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/esv/esv-secret-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default function setup() {
// unrecognized combination of options or no options
else {
printMessage('Unrecognized combination of options or no options...');
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/esv/esv-variable-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function setup() {
// unrecognized combination of options or no options
else {
printMessage('Unrecognized combination of options or no options...');
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/esv/esv-variable-describe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function setup() {
'Unrecognized combination of options or no options...',
'error'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/esv/esv-variable-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function setup() {
'Unrecognized combination of options or no options...',
'error'
);
program.help();
program.outputHelp();
process.exitCode = 1;
}
}
Expand Down
Loading
Loading