add checks for other rules and other profile folder items before removing

This commit is contained in:
Joe Danziger
2025-05-26 23:59:59 -04:00
parent 3c23797ace
commit 3b9191c8bb
5 changed files with 802 additions and 18 deletions

View File

@@ -2837,10 +2837,13 @@ Examples:
const errors = removalResults.filter(
(r) => r.error && !r.success && !r.skipped
);
const withNotices = removalResults.filter((r) => r.notice);
if (successes.length > 0) {
console.log(
chalk.green(`Successfully removed rules: ${successes.join(', ')}`)
chalk.green(
`Successfully removed Task Master rules: ${successes.join(', ')}`
)
);
}
if (skipped.length > 0) {
@@ -2857,6 +2860,13 @@ Examples:
);
});
}
// Display notices about preserved files/configurations
if (withNotices.length > 0) {
console.log(chalk.cyan('\nNotices:'));
withNotices.forEach((r) => {
console.log(chalk.cyan(` ${r.profileName}: ${r.notice}`));
});
}
}
});