async prompting()

in generators/app/index.js [13:34]


  async prompting() {
    this.log(yosay(
        'Welcome to Service Fabric guest application generator'
    ));
    

    var prompts = [{
      type: 'input'
    , name: 'projName'
    , message: 'Name your application'
    , default: this.config.get('projName')
    , validate: function (input) {
        return input ? true : false;
      }
    }];

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