@orchagent/cli 0.3.112 → 0.3.113
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/service.js +9 -0
- package/package.json +1 -1
package/dist/commands/service.js
CHANGED
|
@@ -203,10 +203,16 @@ function registerServiceCommand(program) {
|
|
|
203
203
|
process.stdout.write(` ${chalk_1.default.bold('Agent:')} ${svc.agent_name}@${svc.agent_version}\n`);
|
|
204
204
|
process.stdout.write(` ${chalk_1.default.bold('State:')} ${stateColor(svc.current_state)}\n`);
|
|
205
205
|
process.stdout.write(` ${chalk_1.default.bold('Tier:')} ${formatServiceTier(svc)}\n`);
|
|
206
|
+
if (svc.service_url) {
|
|
207
|
+
process.stdout.write(` ${chalk_1.default.bold('URL:')} ${chalk_1.default.cyan(svc.service_url)}\n`);
|
|
208
|
+
}
|
|
206
209
|
if (options.pin) {
|
|
207
210
|
process.stdout.write(` ${chalk_1.default.bold('Pinned:')} ${chalk_1.default.yellow(`yes (won't auto-update on publish)`)}\n`);
|
|
208
211
|
}
|
|
209
212
|
process.stdout.write(`\n`);
|
|
213
|
+
if (svc.service_url) {
|
|
214
|
+
process.stdout.write(chalk_1.default.gray(`Public URL: ${svc.service_url}\n`));
|
|
215
|
+
}
|
|
210
216
|
process.stdout.write(chalk_1.default.gray(`View logs: orch service logs ${svc.id}\n`));
|
|
211
217
|
}
|
|
212
218
|
catch (e) {
|
|
@@ -357,6 +363,9 @@ function registerServiceCommand(program) {
|
|
|
357
363
|
process.stdout.write(` Agent: ${svc.agent_name}@${svc.agent_version}\n`);
|
|
358
364
|
process.stdout.write(` State: ${stateColor(svc.current_state)}\n`);
|
|
359
365
|
process.stdout.write(` Health: ${healthColor(svc.health_status)}\n`);
|
|
366
|
+
if (svc.service_url) {
|
|
367
|
+
process.stdout.write(` URL: ${chalk_1.default.cyan(svc.service_url)}\n`);
|
|
368
|
+
}
|
|
360
369
|
if (svc.auto_paused_at) {
|
|
361
370
|
process.stdout.write(` ${chalk_1.default.bgRed.white(' CRASH-LOOP ')} auto-paused at ${formatDate(svc.auto_paused_at)}\n`);
|
|
362
371
|
}
|
package/package.json
CHANGED