In commander.js, when asking for user input, I would use the prompt method:
program.prompt('name: ', function(name){
console.log('hi %s', name);
});
But now that method has been removed in version 2.0.0. What is the new method to ask for user input?
Update: looks like promptly is the new home for these functions.
This change is being discussed in this github issue. My guess is TJ thinks that functionality belongs in a separate module. Not sure if he plans to migrate the code to a new module or going to leave that to the community, though. But in the end probably one of these outcomes will occur:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With