@forge/cli

11.0.1-next.1411.1.0-next.24
out/command-line/register-installation-commands.js
out/command-line/register-installation-commands.js
+8−10
Index: package/out/command-line/register-installation-commands.js
===================================================================
--- package/out/command-line/register-installation-commands.js
+++ package/out/command-line/register-installation-commands.js
@@ -5,14 +5,13 @@
 const shared_1 = require("../installations/shared");
 const uninstall_command_helpers_1 = require("./uninstall-command-helpers");
 const semver_1 = require("semver");
 const COMMAND_NAME = 'install';
-const registerInstallAppCommand = async ({ cmd, controllers: { installController }, services: { supportedProductsService } }) => {
-    const supportedProducts = await supportedProductsService.getSupportedProducts();
+const registerInstallAppCommand = ({ cmd, controllers: { installController } }) => {
     cmd
         .requireAppId()
         .environmentOption()
-        .contextOption(supportedProducts)
+        .contextOption()
         .option('--upgrade', cli_shared_1.Text.install.optionUpgrade, false)
         .option('--confirm-scopes', cli_shared_1.Text.install.optionConfirmScopes, false)
         .option('-l, --license [license]', cli_shared_1.Text.install.optionLicense)
         .option('--license-modes [licenseModes...]', cli_shared_1.Text.install.optionLicenseModes)
@@ -64,14 +63,13 @@
         });
     });
 };
 exports.registerListInstallationsCommand = registerListInstallationsCommand;
-const registerUninstallCommand = async (deps) => {
-    const { cmd, ui, services: { installationsService, supportedProductsService } } = deps;
-    const supportedProducts = await supportedProductsService.getSupportedProducts();
+const registerUninstallCommand = (deps) => {
+    const { cmd, ui, services: { installationsService } } = deps;
     cmd
         .command('uninstall')
-        .contextOption(supportedProducts)
+        .contextOption()
         .environmentOption()
         .requireAppId()
         .description(cli_shared_1.Text.uninstall.cmd.desc)
         .action(async ({ site, environment, product }) => {
@@ -110,12 +108,12 @@
         }
     });
 };
 const DEPRECATED_LIST_COMMAND = 'install:list';
-const registerCommands = async ({ cmd, ...deps }) => {
+const registerCommands = ({ cmd, ...deps }) => {
     const install = cmd.command(COMMAND_NAME).description(cli_shared_1.Text.variables.description);
-    await registerUninstallCommand({ cmd, ...deps });
+    registerUninstallCommand({ cmd, ...deps });
     cmd.deprecatedCommand(DEPRECATED_LIST_COMMAND, `${COMMAND_NAME} ${LIST_COMMAND_NAME}`, deps.controllers.stubController);
-    await registerInstallAppCommand({ cmd: install, ...deps });
+    registerInstallAppCommand({ cmd: install, ...deps });
     (0, exports.registerListInstallationsCommand)({ cmd: install, ...deps });
 };
 exports.registerCommands = registerCommands;