add checks for other rules and other profile folder items before removing
This commit is contained in:
@@ -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}`));
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user