modules/generator/generator.js
/**
   * Prompt user to answer questions. The signature of this method is the same as {@link https://github.com/SBoudrias/Inquirer.js Inquirer.js}
   *
   * On top of the Inquirer.js API, you can provide a `{cache: true}` property for
   * every question descriptor. When set to true, Yeoman will store/fetch the
   * user's answers as defaults.
   * @param  {array} questions  Array of question descriptor objects. See {@link https://github.com/SBoudrias/Inquirer.js/blob/master/README.md Documentation}
   * @param questions
   * @returns {PromiseLike<any> | Promise<any>}
   */
Prompt user to answer questions.
Prompt user to answer questions .
prompt(questions) {
    return this.env.adapter.prompt(questions).then(answers => {
      return answers
    })
  }
prompt ( questions ) { return this . env . adapter . prompt ( questions ) . then ( answers => { return answers } ) }
Prompt user to answer questions.
Prompt user to answer questions .