(
message: string,
options: SelectOption[],
initial?: string[],
)
| 188 | } |
| 189 | |
| 190 | export async function selectMany( |
| 191 | message: string, |
| 192 | options: SelectOption[], |
| 193 | initial?: string[], |
| 194 | ): Promise<string[]> { |
| 195 | const result = await clackMultiselect<string>({ |
| 196 | message, |
| 197 | options: options.map(toClackOption) as ClackOptionsArray, |
| 198 | required: false, |
| 199 | initialValues: initial, |
| 200 | }); |
| 201 | handleCancel(result); |
| 202 | return result as string[]; |
| 203 | } |
| 204 | |
| 205 | export async function selectAutocomplete( |
| 206 | message: string, |
no test coverage detected