Skip to content

Commit 51f11cb

Browse files
committed
fix: exit if user cancel template selection
1 parent 3e7a300 commit 51f11cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cli.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,9 @@ const mainCommand = defineCommand({
187187
value: t.name,
188188
label: t.description,
189189
})),
190+
cancel: "reject"
190191
},
191-
);
192+
).catch(() => process.exit(1));
192193
}
193194

194195
// Download the template

0 commit comments

Comments
 (0)