@forge/cli

12.9.0-next.1712.9.0-next.18-experimental-f76634b
out/containers/container-command.js
~out/containers/container-command.jsModified
+10−4
Index: package/out/containers/container-command.js
===================================================================
--- package/out/containers/container-command.js
+++ package/out/containers/container-command.js
@@ -70,13 +70,13 @@
             appId
         });
         return appContainers ?? [];
     }
-    async getContainerServiceDetails(environmentKey, serviceNames) {
+    async getContainerServiceDetails(environmentKey, serviceNames, shard) {
         const { id: appId } = await this.getAppConfig();
         const query = `
-      query forge_cli_appContainerServices($appId: ID!, $environmentKey: String!, $serviceNames: [String!]!) {
-        appContainerServices(appId: $appId, environmentKey: $environmentKey, serviceNames: $serviceNames) {
+      query forge_cli_appContainerServices($appId: ID!, $environmentKey: String!, $serviceNames: [String!]!, $contextFilter: AppContainerServiceContextFilter) {
+        appContainerServices(appId: $appId, environmentKey: $environmentKey, serviceNames: $serviceNames, contextFilter: $contextFilter) {
           services {
             key
             runningCount
             pendingCount
@@ -101,9 +101,15 @@
       }`;
         const { appContainerServices } = await this.client.query(query, {
             appId,
             environmentKey,
-            serviceNames
+            serviceNames,
+            contextFilter: shard
+                ? {
+                    type: cli_shared_1.AppContainerServiceContextFilterType.ShardContext,
+                    value: shard
+                }
+                : undefined
         });
         if (!appContainerServices) {
             throw new UnexpectedAppContainerServicesError();
         }