plopjs / plop

Consistency Made Simple
http://plopjs.com
MIT License
7.03k stars 276 forks source link

Feature request: ability to use `select` prompt from Inquirer #381

Open sympatheticmoose opened 1 year ago

sympatheticmoose commented 1 year ago

Thanks for all the work on this framework 🙌

I'm not sure whether this is possible without a move to the Inquirer rewrite with @inquirer/prompt... but the addition of description alongside value as opposed to List makes it nice for providing guidance to users.

Wondered if there are any current plans to move to the new package?

mheob commented 1 year ago

Using the description would be a great improvement.

geff21st commented 7 months ago

According to sources it's possible to pass an async callback into prompts like this:

image

I copied an example from inquirer docs and it seems to work okay:

image

Maybe it's not most elegant solution but it's flexible and it works.