@forge/cli-shared

9.7.0-next.15-experimental-554d4179.7.0-next.14-experimental-fd0ebbc
out/ui/text.js
~out/ui/text.jsModified
+2−3
Index: package/out/ui/text.js
===================================================================
--- package/out/ui/text.js
+++ package/out/ui/text.js
@@ -6,9 +6,9 @@
 const manifest_1 = require("@forge/manifest");
 const case_1 = require("case");
 const chalk_1 = tslib_1.__importDefault(require("chalk"));
 const terminal_link_1 = tslib_1.__importDefault(require("terminal-link"));
-const graphql_types_1 = require("../graphql/graphql-types");
+const graphql_runtime_enums_1 = require("../graphql/graphql-runtime-enums");
 const cli_details_1 = require("../shared/cli-details");
 const environment_1 = require("../shared/environment");
 const developer_console_1 = require("../shared/developer-console");
 const installations_1 = require("../shared/installations");
@@ -440,9 +440,9 @@
             appNotExist: `Your app could not be found. Make sure the app details in the manifest.yml file are correct before trying again.`,
             envNotExist: (envKey) => `Environment ${chalk_1.default.bold((0, environment_1.environmentToOption)(envKey))} does not exist. Check the environment name and try again.`
         },
         displayEnvironment: (envKey, envType) => {
-            if (envType === graphql_types_1.AppEnvironmentType.Development &&
+            if (envType === graphql_runtime_enums_1.AppEnvironmentType.Development &&
                 envKey !== environment_1.DEFAULT_ENVIRONMENT_KEY &&
                 envKey !== environment_1.DEFAULT_ENVIRONMENT_OPTION) {
                 return `${chalk_1.default.gray('DEV')} ${(0, environment_1.environmentToOption)(envKey)}`;
             }
@@ -1235,9 +1235,8 @@
                 noInstallationId: 'The installation completed but no installation id was returned, so optional connections cannot be linked.',
                 nonInteractiveOrgRequired: 'You have access to multiple organizations. Pass --unitId <id> to install directly.',
                 nonInteractiveUnitRequired: 'The organization has multiple units. Pass --unitId <id> to install directly.',
                 connectFlagsRequired: 'Pass both --product and --site to link a connection non-interactively.',
-                connectRequiresUnit: 'Connecting a global app requires --unitId <id>, --product, and --site together. Pass all three, or run install without them to choose a unit interactively.',
                 unsupportedConnection: (product) => `"${product}" is not a linkable Atlassian app. Choose one of: Jira, Confluence, Bitbucket.`,
                 notInstalledInUnit: (unitId) => `The app is not installed in unit ${unitId}. Install it into the unit first (${forge('install', '--unitId', unitId)}), then link a connection.`
             }
         }