async prompting()

in generators/app/index.js [14:45]


  async prompting() {
    // var done = this.async();

    this.log(yosay(
        'Welcome to Service Fabric java app generator'
    ));
    

    var prompts = [{
      type: 'input'
    , name: 'projName'
    , message: 'Name your application'
    , default: this.config.get('projName')
    , validate: function (input) {
        return input ? true : false;
      }
    }, {
      type: 'list'
      , name: 'frameworkType'
      , message: 'Choose a framework for your service'
      , default: this.config.get('frameworkType')
      , choices: ["Reliable Actor Service", "Reliable Stateless Service", "Reliable Stateful Service"]
      }];

    await this.prompt(prompts).then(props => {
      this.props = props;
      this.props.projName = this.props.projName.trim();
      this.config.set(props);

      // done();
    });
  }