Skip to content

Commit

Permalink
section headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradgarropy committed Jan 7, 2021
1 parent 25448a8 commit a041836
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bradgarropy",
"version": "2.3.0",
"version": "2.4.0",
"description": "🃏 npx business card",
"keywords": [
"npm",
Expand Down
4 changes: 4 additions & 0 deletions src/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ const generate = async () => {
style: {},
}

console.log("--- Describe yourself ---\n")
const infoAnswers = await inquirer.prompt(infoQuestions)
config.info = infoAnswers

console.log("\n\n--- Showcase links ---\n")

let shouldContinue = true

while (shouldContinue) {
Expand All @@ -23,6 +26,7 @@ const generate = async () => {
shouldContinue = more
}

console.log("\n\n--- Style your card ---\n")
const styleAnswers = await inquirer.prompt(styleQuestions)
config.style = styleAnswers

Expand Down
4 changes: 2 additions & 2 deletions src/generator/questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ const linkQuestions = [
{
type: "input",
name: "name",
message: "Enter a link name.",
message: "Enter a link name:",
},
{
type: "input",
name: "url",
message: "Enter a url.",
message: "Enter a link url:",
},
{
type: "confirm",
Expand Down

0 comments on commit a041836

Please sign in to comment.