@forge/cli-shared

8.20.08.20.0-experimental-a6c6519
out/ui/text.js
~out/ui/text.jsModified
+41
Index: package/out/ui/text.js
===================================================================
--- package/out/ui/text.js
+++ package/out/ui/text.js
@@ -1488,6 +1488,47 @@
         }
     },
     dynamicTable: {
         exiting: 'Exiting...'
+    },
+    module: {
+        cmd: {
+            description: 'Commands for managing modules in your app'
+        },
+        add: {
+            description: 'add a module to your Forge App',
+            optionModuleType: 'module type to add (e.g. jira:issuePanel, confluence:macro, etc.)',
+            optionUiType: 'UI framework (ui-kit, custom-ui)',
+            optionProduct: 'target product (Jira, Confluence, etc.)',
+            optionDryRun: 'show what would be generated',
+            optionForce: 'overwrite existing files',
+            optionNoInstall: 'skip installing dependencies',
+            optionUpgradeDeps: 'upgrade existing dependencies to template versions',
+            promptSelectProduct: 'select a product',
+            promptSelectModule: 'select a module',
+            promptSelectUIFramework: 'select a UI framework',
+            errorInvalidProduct: (product) => `Invalid product "${product}"`,
+            errorInvalidUIFramework: (uiFramework, moduleKey) => `Invalid UI framework "${uiFramework ?? 'unknown'}" for module "${moduleKey}"`,
+            errorFailedToResolveChoice: (choice) => `Failed to resolve selected module from choice "${choice}"`,
+            errorFailedToDownloadTemplate: (moduleKey) => `Failed to download template for module "${moduleKey}"`
+        },
+        list: {
+            description: 'list available module templates',
+            optionProduct: 'filter by product (Jira, Confluence, etc.)',
+            optionUiType: 'filter by UI framework (ui-kit, custom-ui)'
+        },
+        info: {
+            description: 'show details about a module template',
+            optionModuleType: 'module key or template name, (e.g. jira:issuePanel, confluence:macro, etc.)',
+            optionProduct: 'filter by product (Jira, Confluence, etc.)',
+            optionUiType: 'filter by UI framework (ui-kit, custom-ui)'
+        },
+        errors: {
+            bifrostIndexInvalid: 'Error: expected array of templates',
+            bifrostIndexFetchFailed: (status, statusText) => `Error: template fetch failed: ${status} ${statusText}`,
+            bifrostManifestFragmentFetchFailed: (status, statusText) => `Error: failed to fetch manifest fragment: ${status} ${statusText}`,
+            duplicateModuleKey: (value, moduleKey) => `Module key "${value}" already exists for ${moduleKey}. Please enter a different value.`,
+            duplicateFunctionKey: (value) => `Function key "${value}" already exists. Please enter a different value.`,
+            duplicateResourceKey: (value) => `Resource key "${value}" already exists. Please enter a different value.`
+        }
     }
 };