fix: installer IDE selection and cancellation handling
- Fix manifest reading to use manifest.yaml instead of manifest.csv - Show previously configured IDEs as selected by default in UI - Skip configuration prompts for already configured IDEs during updates - Properly collect IDE configurations during full reinstall - Handle installation cancellation without throwing errors
This commit is contained in:
@@ -26,14 +26,23 @@ module.exports = {
|
||||
// Regular install/update flow
|
||||
const result = await installer.install(config);
|
||||
|
||||
console.log(chalk.green('\n✨ Installation complete!'));
|
||||
console.log(
|
||||
chalk.cyan('BMAD Core and Selected Modules have been installed to:'),
|
||||
chalk.bold(result.path || path.resolve(config.directory, 'bmad')),
|
||||
);
|
||||
console.log(chalk.yellow('\nThank you for helping test the early release version of the new BMad Core and BMad Method!'));
|
||||
console.log(chalk.cyan('Check docs/alpha-release-notes.md in this repository for important information.'));
|
||||
process.exit(0);
|
||||
// Check if installation was cancelled
|
||||
if (result && result.cancelled) {
|
||||
process.exit(0);
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if installation succeeded
|
||||
if (result && result.success) {
|
||||
console.log(chalk.green('\n✨ Installation complete!'));
|
||||
console.log(
|
||||
chalk.cyan('BMAD Core and Selected Modules have been installed to:'),
|
||||
chalk.bold(result.path || path.resolve(config.directory, 'bmad')),
|
||||
);
|
||||
console.log(chalk.yellow('\nThank you for helping test the early release version of the new BMad Core and BMad Method!'));
|
||||
console.log(chalk.cyan('Check docs/alpha-release-notes.md in this repository for important information.'));
|
||||
process.exit(0);
|
||||
}
|
||||
} catch (error) {
|
||||
// Check if error has a complete formatted message
|
||||
if (error.fullMessage) {
|
||||
|
||||
Reference in New Issue
Block a user