@lvnt/release-radar-cli 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +31 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -63,6 +63,8 @@ async function runInteractive() {
|
|
|
63
63
|
}
|
|
64
64
|
// Download/update selected tools
|
|
65
65
|
console.log('');
|
|
66
|
+
const successes = [];
|
|
67
|
+
const failures = [];
|
|
66
68
|
for (const tool of selected) {
|
|
67
69
|
if (tool.type === 'npm') {
|
|
68
70
|
console.log(chalk.bold(`Updating npm package ${tool.displayName} (${tool.package})...`));
|
|
@@ -70,9 +72,11 @@ async function runInteractive() {
|
|
|
70
72
|
if (result.success) {
|
|
71
73
|
tracker.recordDownload(tool.name, tool.version, `npm:${tool.package}`);
|
|
72
74
|
console.log(chalk.green(` Updated ${tool.package} to ${tool.version} ✓\n`));
|
|
75
|
+
successes.push({ name: tool.displayName, version: tool.version, type: 'npm' });
|
|
73
76
|
}
|
|
74
77
|
else {
|
|
75
78
|
console.log(chalk.red(` Failed: ${result.error}\n`));
|
|
79
|
+
failures.push({ name: tool.displayName, version: tool.version, error: result.error || 'Unknown error' });
|
|
76
80
|
}
|
|
77
81
|
}
|
|
78
82
|
else {
|
|
@@ -81,13 +85,39 @@ async function runInteractive() {
|
|
|
81
85
|
if (result.success) {
|
|
82
86
|
tracker.recordDownload(tool.name, tool.version, tool.filename);
|
|
83
87
|
console.log(chalk.green(` Saved to ${config.downloadDir}/${tool.filename} ✓\n`));
|
|
88
|
+
successes.push({ name: tool.displayName, version: tool.version, type: 'download' });
|
|
84
89
|
}
|
|
85
90
|
else {
|
|
86
91
|
console.log(chalk.red(` Failed: ${result.error}\n`));
|
|
92
|
+
failures.push({ name: tool.displayName, version: tool.version, error: result.error || 'Unknown error' });
|
|
87
93
|
}
|
|
88
94
|
}
|
|
89
95
|
}
|
|
90
|
-
|
|
96
|
+
// Summary report
|
|
97
|
+
console.log(chalk.bold('─'.repeat(50)));
|
|
98
|
+
console.log(chalk.bold('Summary\n'));
|
|
99
|
+
if (successes.length > 0) {
|
|
100
|
+
console.log(chalk.green(`✓ ${successes.length} succeeded:`));
|
|
101
|
+
for (const s of successes) {
|
|
102
|
+
console.log(chalk.green(` • ${s.name} ${s.version}`));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (failures.length > 0) {
|
|
106
|
+
console.log(chalk.red(`\n✗ ${failures.length} failed:`));
|
|
107
|
+
for (const f of failures) {
|
|
108
|
+
console.log(chalk.red(` • ${f.name} ${f.version}: ${f.error}`));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
console.log('');
|
|
112
|
+
if (failures.length === 0) {
|
|
113
|
+
console.log(chalk.green('All downloads completed successfully!'));
|
|
114
|
+
}
|
|
115
|
+
else if (successes.length === 0) {
|
|
116
|
+
console.log(chalk.red('All downloads failed.'));
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
console.log(chalk.yellow(`Completed with ${failures.length} failure(s).`));
|
|
120
|
+
}
|
|
91
121
|
}
|
|
92
122
|
async function main() {
|
|
93
123
|
const args = process.argv.slice(2).filter(arg => !arg.startsWith('--'));
|