(title: string, index: number)
| 936 | const description = InternalHelpDoc.p("Select which command you would like to execute") |
| 937 | const message = InternalHelpDoc.toAnsiText(description).trimEnd() |
| 938 | const makeChoice = (title: string, index: number) => ({ |
| 939 | title, |
| 940 | value: [title, index] as const |
| 941 | }) |
| 942 | const choices = pipe( |
| 943 | getSubcommandsInternal(self), |
| 944 | Arr.map(([name], index) => makeChoice(name, index)) |