diff --git a/lib/menu.ts b/lib/menu.ts index 3302ed2..c862a9a 100644 --- a/lib/menu.ts +++ b/lib/menu.ts @@ -200,6 +200,17 @@ async function parseRemotes(remotes: string[]) { text: 'Cleanup', action: async () => { try { + const confirmed = await ask(`Start cleanup on ${remote}?`, { + title: `Cleaning up ${remote}`, + kind: 'warning', + okLabel: 'Start', + cancelLabel: 'Cancel', + }) + + if (!confirmed) { + return + } + await cleanupRemote(remote) await message(`Cleanup started for ${remote}`, { title: 'Cleanup Started',