Closed brandonweiss closed 4 years ago
Hey @brandonweiss. First of all, I'm really sorry for the late response, I didn't have the notifications turned on for this repo. It's fixed now.
You are right, given that this functionality is not provided by yargs
, there is some work required to make it work in here. I haven't found any use case to support it, but in case you have one I'm open to receive a PR and review it. What do you think?
No worries! I’ve certainly done that myself before 😓
Hmm… honestly it’s been so long I can’t remember what in particular I wanted this feature for 😅 Apparently it wasn’t a big enough problem because I completely forgot about it 🤷♂ Feel free to close!
Will do, but feel free to open it again if you need it.
And sorry again for taking so long to answer.
Inquirer allows the
choices
property to be an array or a function that returns an array (in order to make the choices dynamic based on previously answered questions). But it seems like yargs expects thechoices
property to be a string or array?