feat(workspaces): consolidate cleanup commands and add safety confirmations

This commit is contained in:
mkorwel
2026-03-18 23:42:51 -07:00
parent f42f366ca4
commit 2f1175b9fe
3 changed files with 15 additions and 6 deletions
+8 -1
View File
@@ -61,7 +61,14 @@ export async function runCleanup(args: string[], env: NodeJS.ProcessEnv = proces
}
// --- Bulk Cleanup ---
console.log(`🧹 Starting BULK cleanup on ${targetVM}...`);
console.log(`⚠️ DANGER: You are about to perform a BULK cleanup on ${targetVM}.`);
const confirmed = await confirm(' Are you sure you want to kill ALL sessions and worktrees?');
if (!confirmed) {
console.log('❌ Cleanup cancelled.');
return 0;
}
console.log(`🧹 Starting BULK cleanup...`);
// 1. Standard Cleanup
console.log(' - Killing ALL remote tmux sessions...');