From 32481547687fc90f3ed446680fcbc152e812bf8a Mon Sep 17 00:00:00 2001 From: Aditya-vegi Date: Wed, 25 Mar 2026 12:19:07 +0530 Subject: [PATCH 1/2] Add app type selection prompt to create command --- src/commands/create.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/commands/create.ts b/src/commands/create.ts index 79525ac..aa655c4 100644 --- a/src/commands/create.ts +++ b/src/commands/create.ts @@ -43,6 +43,14 @@ export default class Create extends Command { this.log('We need some information first:'); this.log(''); + const appType = await cli.prompt( + chalk.bold(' App Type (chatbot/integration)'), + { default: 'chatbot' } + ); + + this.log(`Selected App Type: ${chalk.green(appType)}`); + this.log(''); + const { flags } = this.parse(Create); info.name = flags.name ? flags.name : await cli.prompt(chalk.bold(' App Name')); info.nameSlug = VariousUtils.slugify(info.name); From 03e3f3fb8e04c272a16b976b5422c322e5ecab94 Mon Sep 17 00:00:00 2001 From: Aditya-vegi Date: Wed, 25 Mar 2026 15:18:35 +0530 Subject: [PATCH 2/2] Normalize user input to lowercase for app type --- src/commands/create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/create.ts b/src/commands/create.ts index aa655c4..82cd3fd 100644 --- a/src/commands/create.ts +++ b/src/commands/create.ts @@ -46,7 +46,7 @@ export default class Create extends Command { const appType = await cli.prompt( chalk.bold(' App Type (chatbot/integration)'), { default: 'chatbot' } - ); + ).then((input: string) => input.toLowerCase()); this.log(`Selected App Type: ${chalk.green(appType)}`); this.log('');