src/api/steps/prompting.js
/**
* Step 2
* Where you prompt users for options (where you'd call this.prompt()).
*/
import questions from '../questions';
export default {
askModel () {
let done = this.async()
this.prompt(questions, answers => {
this.answers = Object.assign(this.answers || {}, answers);
done();
});
}
};