Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Exit process after running a command #1477

Merged
merged 1 commit into from
Feb 26, 2020
Merged
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
1 change: 1 addition & 0 deletions packages/cli/src/register-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export function register(program: Command, spec: CommandSpec, getAction: () => P
await promptOrValidateAll(cmd, spec, params);
Telemetry.report(cmd.name(), params as { [key: string]: unknown }, !!params.interactive);
await action(params);
process.exit(0);
});

for (const opt of spec.options) {
Expand Down