mirror of
https://github.com/bmadcode/BMAD-METHOD.git
synced 2025-12-29 16:14:59 +00:00
installer improvements
This commit is contained in:
@@ -14,6 +14,13 @@ module.exports = {
|
||||
try {
|
||||
const config = await ui.promptInstall();
|
||||
|
||||
// Handle cancel
|
||||
if (config.actionType === 'cancel') {
|
||||
console.log(chalk.yellow('Installation cancelled.'));
|
||||
process.exit(0);
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle agent compilation separately
|
||||
if (config.actionType === 'compile') {
|
||||
const result = await installer.compileAgents(config);
|
||||
@@ -32,6 +39,11 @@ module.exports = {
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle reinstall by setting force flag
|
||||
if (config.actionType === 'reinstall') {
|
||||
config._requestedReinstall = true;
|
||||
}
|
||||
|
||||
// Regular install/update flow
|
||||
const result = await installer.install(config);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user