Skip to content

Commit

Permalink
✨ Renaming questions function names
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck committed Jun 6, 2019
1 parent f69b4ad commit 8907db0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ const inquirer = require('inquirer')

const { getTemplate, createReadme } = require('./utils')
const {
getProjectName,
getProjectDescription,
getAuhtorName,
getAuhtorGithub,
getAuhtorTwitter
askProjectName,
askProjectDescription,
askAuhtorName,
askAuhtorGithub,
askAuhtorTwitter
} = require('./questions')

/**
* Ask user questions and return context to generate a README
*/
const askQuestions = async () => {
const questions = [
getProjectName(),
await getProjectDescription(),
await getAuhtorName(),
getAuhtorGithub(),
getAuhtorTwitter()
askProjectName(),
await askProjectDescription(),
await askAuhtorName(),
askAuhtorGithub(),
askAuhtorTwitter()
]

return inquirer.prompt(questions)
Expand Down
20 changes: 10 additions & 10 deletions src/questions/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const getProjectName = require('./project-name')
const getProjectDescription = require('./project-description')
const getAuhtorName = require('./author-name')
const getAuhtorGithub = require('./author-github')
const getAuhtorTwitter = require('./author-twitter')
const askProjectName = require('./project-name')
const askProjectDescription = require('./project-description')
const askAuhtorName = require('./author-name')
const askAuhtorGithub = require('./author-github')
const askAuhtorTwitter = require('./author-twitter')

module.exports = {
getProjectName,
getProjectDescription,
getAuhtorName,
getAuhtorGithub,
getAuhtorTwitter
askProjectName,
askProjectDescription,
askAuhtorName,
askAuhtorGithub,
askAuhtorTwitter
}

0 comments on commit 8907db0

Please sign in to comment.