async prompting()

in generators/CoreCLRStatelessService/index.js [23:49]


  async prompting() {
    var utility = require("../utility");
    var prompts = [
      {
        type: "input",
        name: "serviceFQN",
        message: "Enter the name of service : ",
        validate: function(input) {
          return input ? utility.validateFQN(input) : false;
        }
      }
    ];

    await this.prompt(prompts).then(answers => {
      this.serviceFQN = answers.serviceFQN;
      var parts = this.serviceFQN.split("."),
        name = parts.pop();
      this.packageName = parts.join(".");
      this.dir = parts.join("/");
      this.serviceName = utility.capitalizeFirstLetter(name.trim());
      if (!this.packageName) {
        this.packageName = "statelessservice";
        this.serviceFQN = "statelessservice." + this.serviceFQN;
        this.dir = this.dir + "/statelessservice";
      }
    });
  }