UPDATE: February 8, 2012
The answer seems to be inside the init.process .
Run the process to start the input request. init.process (parameters, hints made)
init.process({}, [ // Prompt for these values init.prompt('name'), init.prompt('description'), init.prompt('version') ], function(err, props) { // All finished, do something with the properties });
Where the prompt argument is an array of objects. You can add your own without registering new helpers or expanding the invitation.
Custom hints can be added like this:
init.process({}, [ // Prompt for these values. { name: 'client_name', message: 'Who is the client contact?', default: 'Joe Smith', validator: /^[\w\-\.]+$/, warning: 'Must be only letters, numbers, dashes, dots or underscores. (If this is not for a client, say HOUSE)' }, { name: 'project_manager', message: 'Who is the project manager?', default: 'Me', validator: /^[\w\-\.]+$/, warning: 'Must be only letters, numbers, dashes, dots or underscores.' } ], function(err, props) { // All finished, do something with the properties });
Beans source share