chore: added ability to exit during init flow ed16a0cb
Steve · 2026-01-29 15:51 1 file(s) · +7 −0
packages/cli/src/commands/init.ts +7 −0
11 11
	description: "Initialize a new publisher configuration",
12 12
	args: {},
13 13
	handler: async () => {
14 +
		// Handle Ctrl+C to exit immediately instead of cancelling one prompt at a time
15 +
		const exitHandler = () => {
16 +
			consola.info("\nCancelled");
17 +
			process.exit(0);
18 +
		};
19 +
		process.on("SIGINT", exitHandler);
20 +
14 21
		// Check if config already exists
15 22
		const existingConfig = await findConfig();
16 23
		if (existingConfig) {