CaliStyle/generator-treefrog

View on GitHub
src/model/steps/prompting.js

Summary

Maintainability
A
2 hrs
Test Coverage
/**
 * 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();
    });
  }
};