Skip to content
Callum Locke edited this page Nov 12, 2013 · 2 revisions

prompt#prompt

Prompt for user input based on the given Array of prompts to perform in series, and call done callback on completion. prompts can be a single Hash of options in which case a single prompt is performed.

  • prompts - A single or an Array of Hash options.
  • done - Callback to call on error or on completion.

A prompt hash may contain any option accepted by Inquirer – documented here: https://github.com/SBoudrias/Inquirer.js#question

Returns the generator instance.

Clone this wiki locally