Closed devinus closed 8 years ago
Thanks. To assist in debug, could you give me the code you used to reproduce this? Thanks.
I have the same issue. It can be reproduce with
vorpal
.command('setup')
.description('Setup your cli / Update your informations')
.action(function action(args, cb) {
this
.prompt([
{
type : 'input',
name : 'name',
message : 'Enter your name : ',
default : 'defaultName',
},
])
.then(answers => {
cb(`Welcome ${answers.name}!`);
})
.catch(err => cb(err));
});
Inquirer shows default values, but Inquirer used from Vorpal does not.
Inquirer:
Vorpal: