Skip to content

How to write a custom prompt? #1111

Answered by SBoudrias
nareshbhatia asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, we do not have documentation on how to achieve this unfortunately... But there's a ton of examples custom prompts listed in the README, you could read their code to see how it works.

Aside from that, I think the new (beta) interface of Inquirer core is much much easier to use to write custom prompts. Refers to the prompts in our own monorepo to see the interface in use. The new checkbox prompt might be a good place to start to see a complex one - or input prompt for a simpler one, etc.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nareshbhatia
Comment options

Answer selected by nareshbhatia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants