@forge/cli

12.14.0-next.212.14.0-next.8-experimental-e5e0b64
out/command-line/register-show-commands.js
out/command-line/register-show-commands.js
+6−1
Index: package/out/command-line/register-show-commands.js
===================================================================
--- package/out/command-line/register-show-commands.js
+++ package/out/command-line/register-show-commands.js
@@ -1,8 +1,9 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.registerCommands = exports.ShowCommandError = void 0;
 const cli_shared_1 = require("@forge/cli-shared");
+const utils_1 = require("./utils");
 function readServicesFromConfig(manifest) {
     if (!manifest || !manifest.services) {
         return [];
     }
@@ -153,14 +154,18 @@
                     ['id', 'ID'],
                     ['health', 'Health'],
                     ['status', 'Status'],
                     ['imageURI', 'ImageURI'],
+                    ['cpu', 'CPU'],
+                    ['memory', 'Memory'],
                     ['createdAt', 'Created at']
                 ], ct.instances.map((c) => ({
                     id: c.id,
                     health: c.healthStatus,
                     status: c.containerStatus,
                     imageURI: c.imageURI,
+                    cpu: (0, utils_1.formatCpu)(c.cpu),
+                    memory: (0, utils_1.formatMemory)(c.memory),
                     createdAt: c.createdAt
                 })), { preMessage: cli_shared_1.Text.show.containers.specificContainer(ct.key) });
             }
         }
@@ -168,9 +173,9 @@
     });
 };
 const SHOW_COMMAND_NAME = 'show';
 const registerCommands = (deps) => {
-    const containersCmd = deps.cmd.command(SHOW_COMMAND_NAME, { hidden: true }).description(cli_shared_1.Text.show.cmd.desc);
+    const containersCmd = deps.cmd.command(SHOW_COMMAND_NAME).description(cli_shared_1.Text.show.cmd.desc);
     registerShowServiceCommand(containersCmd, deps);
     registerShowContainerCommand(containersCmd, deps);
 };
 exports.registerCommands = registerCommands;