installer allows cleanup of unneeded files in upgrades

This commit is contained in:
Brian Madison
2025-11-26 16:47:15 -06:00
parent fbdb91b991
commit 331a67eeb3
3 changed files with 522 additions and 3 deletions

View File

@@ -9,8 +9,8 @@ const ui = new UI();
module.exports = {
command: 'install',
description: 'Install BMAD Core agents and tools',
options: [],
action: async () => {
options: [['--skip-cleanup', 'Skip automatic cleanup of legacy files']],
action: async (options) => {
try {
const config = await ui.promptInstall();
@@ -44,6 +44,11 @@ module.exports = {
config._requestedReinstall = true;
}
// Add skip cleanup flag if option provided
if (options && options.skipCleanup) {
config.skipCleanup = true;
}
// Regular install/update flow
const result = await installer.install(config);