()
| 13 | type UserChoice = 'resume' | 'fresh'; |
| 14 | |
| 15 | export async function promptUserChoice(): Promise<UserChoice> { |
| 16 | const response = await typedPrompt<UserChoice>({ |
| 17 | type: 'select', |
| 18 | name: 'choice', |
| 19 | message: 'What would you like to do?', |
| 20 | choices: [ |
| 21 | { title: 'Resume from cache', value: 'resume' }, |
| 22 | { title: 'Start fresh (will clear existing cache)', value: 'fresh' }, |
| 23 | ], |
| 24 | initial: 0, |
| 25 | }); |
| 26 | return response.choice || 'resume'; |
| 27 | } |
no outgoing calls
no test coverage detected