Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom prompt format for validate option #361

Open
Lstriker1268 opened this issue Mar 31, 2022 · 0 comments
Open

Custom prompt format for validate option #361

Lstriker1268 opened this issue Mar 31, 2022 · 0 comments

Comments

@Lstriker1268
Copy link

Is your feature request related to a problem?

I am trying to customize an error prompt. However, when looking through Prompts documentation, I could not find a section for what I wanted.

Describe the solution you'd like

I would like an option to describe how I would like to render the validate option. For example:

await prompts({
 ...,
 validatePrompt: (message) => `X ${message}`
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant