(message: string, options: SelectOption[])
| 179 | } |
| 180 | |
| 181 | export async function selectOne(message: string, options: SelectOption[]): Promise<string> { |
| 182 | const result = await clackSelect<string>({ |
| 183 | message, |
| 184 | options: options.map(toClackOption) as ClackOptionsArray, |
| 185 | }); |
| 186 | handleCancel(result); |
| 187 | return result as string; |
| 188 | } |
| 189 | |
| 190 | export async function selectMany( |
| 191 | message: string, |
no test coverage detected