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 51f11cb commit 810a165Copy full SHA for 810a165
src/cli.ts
@@ -179,17 +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
- cancel: "reject"
191
- },
192
- ).catch(() => process.exit(1));
+ cancel: "reject",
+ })
+ .catch(() => process.exit(1));
193
}
194
195
// Download the template
0 commit comments