mirror of
https://github.com/bmadcode/BMAD-METHOD.git
synced 2025-12-29 16:14:59 +00:00
installer allows cleanup of unneeded files in upgrades
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user