From ed16a0cba7d77ea6a4635657d6d0c4a849951603 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 29 Jan 2026 15:51:43 -0500 Subject: [PATCH] chore: added ability to exit during init flow --- packages/cli/src/commands/init.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.ts index ddd503c..f2accfb 100644 --- a/packages/cli/src/commands/init.ts +++ b/packages/cli/src/commands/init.ts @@ -11,6 +11,13 @@ export const initCommand = command({ description: "Initialize a new publisher configuration", args: {}, handler: async () => { + // Handle Ctrl+C to exit immediately instead of cancelling one prompt at a time + const exitHandler = () => { + consola.info("\nCancelled"); + process.exit(0); + }; + process.on("SIGINT", exitHandler); + // Check if config already exists const existingConfig = await findConfig(); if (existingConfig) { -- 2.51.2