ask before starting cleanup

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-09-18 13:45:40 +02:00
parent 33dc6276a9
commit e8e2e28801
+11
View File
@@ -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',