async prompting()

in generators/git-hub/index.js [20:34]


  async prompting() {
    this.parent = this.options.parent;
    this.props = this.parent.props;
    const prompts = [
      {
        type: "confirm",
        name: "withGitHub",
        message: "Do you want to configure your solution for GitHub?",
        default: true,
        when: (answers) => !this.options.hasOwnProperty("withGitHub"),
      },
    ];

    return this.prompt(prompts).then(this._promptingGitHub.bind(this));
  }