(promptMessage?: string, defaultConfirm: boolean = false)
| 87 | } |
| 88 | |
| 89 | export async function getUserConfirmation(promptMessage?: string, defaultConfirm: boolean = false): Promise<boolean> { |
| 90 | const answer = await inquirer.prompt<{ confirm: boolean }>([ |
| 91 | { type: 'confirm', name: 'confirm', message: promptMessage ?? 'Are you sure?', default: defaultConfirm }, |
| 92 | ]); |
| 93 | |
| 94 | return answer.confirm; |
| 95 | } |
| 96 | |
| 97 | export function getScriptDirectory(): string { |
| 98 | return ''; |
no outgoing calls
no test coverage detected