Skip to content

[Request] Provide a disabled flag for Select and MultiSelect options #122

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

Open
mikenikles opened this issue Apr 27, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@mikenikles
Copy link

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
For Select and Multi-Select prompts, I'd like to mark individual options as disabled.

Describe alternatives you've considered
An alternative is to remove the option. However, this impacts discoverability since users of the CLI wouldn't know that option existed.

Additional context
I imagine to use the hint property for disabled options to inform why it is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Needs triage
Development

Successfully merging a pull request may close this issue.

1 participant