in generators/app/index.js [15:47]
async prompting() {
this.log(yosay("Welcome to Service Fabric generator for CSharp"));
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(answers => {
answers.projName = answers.projName.trim();
this.props = answers;
this.config.set(answers);
});
}