diff --git a/packages/cli/src/commands/new/new.ts b/packages/cli/src/commands/new/new.ts index d683aeaa6b..235239d96b 100644 --- a/packages/cli/src/commands/new/new.ts +++ b/packages/cli/src/commands/new/new.ts @@ -25,12 +25,19 @@ import { isMonoRepo } from '@backstage/cli-node'; import { paths } from '../../lib/paths'; import { assertError } from '@backstage/errors'; import { Task } from '../../lib/tasks'; +import { + pluginIdPrompt, + moduleIdIdPrompt, + // ownerPrompt, // 🚨 WIP +} from '../../lib/new/factories/common/prompts'; import defaultTemplates from '../../../templates/alpha/all-default-templates'; type ConfigurablePrompt = | { id: string; prompt: string; + type?: string; + validate?: string; default?: string | boolean; } | string; @@ -113,13 +120,74 @@ async function verifyTemplate({ target }: TemplateLocation): Promise