Skip to content

Commit

Permalink
Exit the process any time the readline stream is closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
appurist committed Jun 6, 2021
1 parent af51892 commit 4ef9093
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ async function run() {
await processLine(line);
rl.prompt();
});
await rl.on("close", () => {
process.exit(0);
});
}

module.exports = {
Expand Down

0 comments on commit 4ef9093

Please sign in to comment.