@forge/cli
12.23.0-next.7-experimental-44b7a1213.0.0-next.11
out/command-line/command.js~
out/command-line/command.jsModified+5−5
Index: package/out/command-line/command.js
===================================================================
--- package/out/command-line/command.js
+++ package/out/command-line/command.js
@@ -1,7 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.environmentPrecondition = exports.validateShardContext = exports.validateContext = exports.getAutocompleteConfig = exports.Command = exports.WrapperError = void 0;
+exports.Command = exports.WrapperError = void 0;
+exports.getAutocompleteConfig = getAutocompleteConfig;
+exports.validateContext = validateContext;
+exports.validateShardContext = validateShardContext;
+exports.environmentPrecondition = environmentPrecondition;
const tslib_1 = require("tslib");
const commander_1 = tslib_1.__importStar(require("commander"));
const ari_1 = require("@forge/util/packages/ari");
const semver_1 = tslib_1.__importDefault(require("semver"));
@@ -476,9 +480,8 @@
}
const options = getOptionsData(cmd);
return { commands, options };
}
-exports.getAutocompleteConfig = getAutocompleteConfig;
function validateContext({ supportedProductsService, site, product }) {
let maybeSupportedProduct = undefined;
let maybeSiteUrl = undefined;
if (product !== undefined) {
@@ -494,9 +497,8 @@
maybeSiteUrl = supportedProductsService.validateSite(site, maybeSupportedProduct);
}
return { site: maybeSiteUrl, product: maybeSupportedProduct };
}
-exports.validateContext = validateContext;
function validateShardContext(shard) {
if (shard) {
const [id, region, ...rest] = shard.split(':');
if (!id || !region || rest.length > 0) {
@@ -505,9 +507,8 @@
return shard;
}
return undefined;
}
-exports.validateShardContext = validateShardContext;
function environmentPrecondition(key, environmentController, requireEnvironmentWithAppIdOverride = false) {
return async (...args) => {
const lastArgs = last(args);
const environmentArg = lastArgs[key];
@@ -522,6 +523,5 @@
const environment = environmentArg || (await environmentController.run(nonInteractive, appId));
return { [key]: (0, environment_1.checkEnvironmentOption)(environment) };
};
}
-exports.environmentPrecondition = environmentPrecondition;
//# sourceMappingURL=command.js.map
\ No newline at end of file