Skip to content

Commit af58394

Browse files
committed
fix: add keyboard interruption handler until tui starts
1 parent 0040290 commit af58394

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extensions/cli/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ process.on("uncaughtException", (error) => {
107107
// Don't exit the process, just log the error
108108
});
109109

110+
// keyboard interruption handler for non-TUI flows
111+
process.on("SIGINT", async () => {
112+
await gracefulExit(130);
113+
});
114+
110115
const program = new Command();
111116

112117
program

0 commit comments

Comments
 (0)