genbox 1.0.95 → 1.0.96
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/commands/status.js +14 -0
- package/package.json +1 -1
package/dist/commands/status.js
CHANGED
|
@@ -446,16 +446,30 @@ exports.statusCommand = new commander_1.Command('status')
|
|
|
446
446
|
console.log(chalk_1.default.green('[SUCCESS] Setup completed!'));
|
|
447
447
|
const finalTiming = getTimingBreakdown(target.ipAddress, keyPath);
|
|
448
448
|
displayTimingBreakdown(finalTiming);
|
|
449
|
+
// Show URLs if available
|
|
450
|
+
if (target.urls && Object.keys(target.urls).length > 0) {
|
|
451
|
+
console.log(chalk_1.default.blue('[INFO] === Service URLs ==='));
|
|
452
|
+
for (const [service, url] of Object.entries(target.urls)) {
|
|
453
|
+
console.log(` ${service}: ${chalk_1.default.cyan(url)}`);
|
|
454
|
+
}
|
|
455
|
+
console.log('');
|
|
456
|
+
}
|
|
457
|
+
console.log(chalk_1.default.dim('Run `gb connect` to SSH into the genbox.'));
|
|
458
|
+
process.exit(0);
|
|
449
459
|
}
|
|
450
460
|
else if (finalStatus.includes('error')) {
|
|
451
461
|
console.log(chalk_1.default.red('[ERROR] Setup encountered an error!'));
|
|
452
462
|
console.log(chalk_1.default.dim(' Run `gb connect` to investigate.'));
|
|
463
|
+
process.exit(1);
|
|
453
464
|
}
|
|
454
465
|
else if (finalStatus.includes('running')) {
|
|
455
466
|
console.log(chalk_1.default.yellow('[INFO] Setup still in progress...'));
|
|
467
|
+
console.log(chalk_1.default.dim(' Run `gb status -w` again to continue watching.'));
|
|
468
|
+
process.exit(0);
|
|
456
469
|
}
|
|
457
470
|
else {
|
|
458
471
|
console.log(chalk_1.default.yellow(`[INFO] Final status: ${finalStatus}`));
|
|
472
|
+
process.exit(0);
|
|
459
473
|
}
|
|
460
474
|
}
|
|
461
475
|
}
|