From e8e2e288019ea20d2ab8102fef19328011ec7276 Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Thu, 18 Sep 2025 13:45:40 +0200 Subject: [PATCH] ask before starting cleanup Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com> --- lib/menu.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) 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',