Closed adriancmiranda closed 3 years ago
@adriancmiranda Any way you can dig into this and see why it's happening? The relevant code is here:
Oh, tks @jamonholmgren!
Gluegun is fine! I was testing the enquirer:
const { Form } = require('enquirer');
const prompt = new Form({
name: 'bugs',
choices: [
{ name: 'url', message: 'url', initial: '' },
{ name: 'email', message: 'email', initial: '' },
],
skip() {
return true;
},
message() {
return 'bugs';
},
});
prompt.run()
.then(value => console.log('Answer:', value))
.catch(console.error);
I'm getting the same result. I'm closing this issue here. Tks again! 👍🏼
Hey, guys! I'm trying to make a form with a
skip
option, but the result is always an empty object when I use this property. I'm not sure about this issue should be opened here or at enquirer repo.returns
should returns
I'm using OSX 10.15.3, node v10.16.2 and npm 6.14.5