@forge/cli

14.2.015.0.0-next.23
out/command-line/register-log-commands.js
~out/command-line/register-log-commands.jsModified
+6−1
Index: package/out/command-line/register-log-commands.js
===================================================================
--- package/out/command-line/register-log-commands.js
+++ package/out/command-line/register-log-commands.js
@@ -150,9 +150,13 @@
         .option('-c, --containerKey <containerKey>', cli_shared_4.Text.logs.optionContainer)
         .option('--instance <instance>', cli_shared_4.Text.logs.optionContainerInstance)
         .option('--serviceKey <serviceKey>', cli_shared_4.Text.logs.optionService)
         .option('-f, --functionKey <functionKey>', cli_shared_4.Text.logs.optionFunction)
-        .action(async ({ environment, invocation, limit: limitStr, grouped, since, containerKey, instance, serviceKey, functionKey }) => {
+        .placementOption(cli_shared_4.Text.logs.optionContainerPlacement)
+        .action(async ({ environment, invocation, limit: limitStr, grouped, since, containerKey, instance, serviceKey, functionKey, placement }) => {
+        if (placement !== undefined && !(0, cli_shared_4.isValidPlacementId)(placement)) {
+            throw new cli_shared_4.ValidationError(cli_shared_4.Text.logs.invalidPlacementOption(placement));
+        }
         const limit = limitStr ? parseLimit(limitStr) : DEFAULT_LIMIT;
         const containers = Boolean(containerKey || instance || serviceKey);
         if (invocation) {
             if (containers) {
@@ -181,8 +185,9 @@
                 containerKey,
                 containerInstance: instance,
                 serviceKey,
                 functionKey,
+                placement,
                 limit,
                 startTime,
                 grouped
             });