( choice: SelectChoice<A>, isActive: boolean, renderOptions?: RenderOptions | undefined )
| 2535 | } |
| 2536 | |
| 2537 | const renderChoiceDescription = <A>( |
| 2538 | choice: SelectChoice<A>, |
| 2539 | isActive: boolean, |
| 2540 | renderOptions?: RenderOptions | undefined |
| 2541 | ) => { |
| 2542 | if (!choice.disabled && choice.description && isActive) { |
| 2543 | return renderOptions?.plain === true |
| 2544 | ? "- " + choice.description |
| 2545 | : Ansi.annotate("- " + choice.description, Ansi.blackBright) |
| 2546 | } |
| 2547 | return "" |
| 2548 | } |
| 2549 | |
| 2550 | const metaOptionsCount = 2 |
| 2551 |
no test coverage detected