We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7a300 commit f808fceCopy full SHA for f808fce
1 file changed
src/cli.ts
@@ -179,16 +179,16 @@ const mainCommand = defineCommand({
179
180
// Prompt the user which template to use
181
if (!args.template) {
182
- args.template = await consola.prompt(
183
- `What template would you like to use?`,
184
- {
+ args.template = await consola
+ .prompt(`What template would you like to use?`, {
185
type: "select",
186
options: TEMPLATES.map((t) => ({
187
value: t.name,
188
label: t.description,
189
})),
190
- },
191
- );
+ cancel: "reject",
+ })
+ .catch(() => process.exit(1));
192
}
193
194
// Download the template
0 commit comments