@forge/cli-shared

9.9.0-next.189.9.0-next.19
out/ui/command-line-ui.js
~out/ui/command-line-ui.jsModified
+15
Index: package/out/ui/command-line-ui.js
===================================================================
--- package/out/ui/command-line-ui.js
+++ package/out/ui/command-line-ui.js
@@ -279,8 +279,23 @@
             }
         ]);
         return choice;
     }
+    async promptForMultiple(message, choices, config) {
+        const { choice } = await this.prompt([
+            {
+                type: 'checkbox',
+                name: 'choice',
+                message,
+                choices: choices.map((value) => ({
+                    name: config?.format?.(value) ?? value,
+                    value,
+                    checked: config?.preselected?.includes(value) ?? false
+                }))
+            }
+        ]);
+        return choice;
+    }
     promptForText(message, defaultValue) {
         return this.promptForString(message, false, defaultValue);
     }
     promptForSecret(message) {