Can i pass data between two prompts in yeoman? Eg i've got two prompts like
{
type: 'input',
name: 'Name',
message: 'Name?'
},{
type: 'input',
name: 'package',
message: 'Package?',
default: 'org.my.app.'+<prompt.name>
}
I want to show name
property as default value for package? One way i can think of is:
- Show a template in default (like in example)
- Change the value later when creating the final template for user.
Is there any better way?
via a1626
No comments:
Post a Comment