Skip to content

Commit

Permalink
feat: add 'features' prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
seantrane committed Aug 28, 2018
1 parent a346f9f commit 6fc13d2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/app/prompting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6fc13d2

Please sign in to comment.