From 6fc13d29d184f36d6900ed9a0d50f20c9b637204 Mon Sep 17 00:00:00 2001 From: Sean Trane Date: Tue, 28 Aug 2018 16:32:28 -0400 Subject: [PATCH] feat: add 'features' prompt --- src/app/prompting.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/app/prompting.ts b/src/app/prompting.ts index e3fda98..5aed7e0 100755 --- a/src/app/prompting.ts +++ b/src/app/prompting.ts @@ -43,12 +43,25 @@ export async function prompting(yo) { if (keyword === '') break; keywords.push(keyword); } + const features = []; + while (true) { + const { feature } = await yo.prompt([ + { + type: 'input', + name: 'feature', + message: 'Feature:', + }, + ]); + if (feature === '') break; + features.push(feature); + } yo.answers = { authorEmail, authorName, authorUrl, description, destination, + features, homepageUrl, keywords, license,