bombshell-dev / clack

Effortlessly build beautiful command-line apps
https://clack.cc
5.26k stars 88 forks source link

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

Open mikenikles opened 1 year ago

mikenikles commented 1 year ago

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.