@forge/cli
12.23.0-next.7-experimental-44b7a1213.0.0-next.11
out/command-line/index.js~
out/command-line/index.jsModified+5−5
Index: package/out/command-line/index.js
===================================================================
--- package/out/command-line/index.js
+++ package/out/command-line/index.js
@@ -1,7 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.main = exports.registerCommands = exports.setupProxy = void 0;
+exports.main = void 0;
+exports.setupProxy = setupProxy;
+exports.registerCommands = registerCommands;
const tslib_1 = require("tslib");
const cli_shared_1 = require("@forge/cli-shared");
const http_proxy_agent_1 = require("http-proxy-agent");
const http_1 = tslib_1.__importDefault(require("http"));
@@ -36,9 +38,9 @@
const worker_info_1 = require("../workers/worker-info");
const workers_starter_1 = require("../workers/workers-starter");
const COMMAND_HELP_GROUPS = {
[cli_shared_1.Text.commandHelp.groups.quickStart]: ['login', 'create', 'deploy', 'install', 'tunnel'],
- [cli_shared_1.Text.commandHelp.groups.develop]: ['build', 'lint', 'logs'],
+ [cli_shared_1.Text.commandHelp.groups.develop]: ['build', 'lint', 'logs', 'module'],
[cli_shared_1.Text.commandHelp.groups.manage]: [
'register',
'environments',
'variables',
@@ -78,20 +80,19 @@
https_1.default.globalAgent = agent;
return agent;
}
}
-exports.setupProxy = setupProxy;
async function registerCommands(deps) {
(0, register_autocomplete_commands_1.registerCommands)(deps);
(0, register_authentication_command_1.registerCommands)(deps);
await (0, register_app_commands_1.registerCommands)(deps);
- await (0, register_module_commands_1.registerCommands)(deps);
(0, register_build_commands_1.registerCommands)(deps);
(0, register_deployment_commands_1.registerCommands)(deps);
(0, register_developer_spaces_commands_1.registerCommands)(deps);
(0, register_installation_commands_1.registerCommands)(deps);
(0, register_environments_commands_1.registerCommands)(deps);
(0, register_environment_variables_commands_1.registerCommands)(deps);
+ await (0, register_module_commands_1.registerCommands)(deps);
(0, register_lint_command_1.registerCommands)(deps);
(0, register_log_commands_1.registerCommands)(deps);
await (0, register_tunnel_commands_1.registerCommands)(deps);
(0, register_webtrigger_commands_1.registerCommands)(deps);
@@ -107,9 +108,8 @@
(0, register_assistant_commands_1.registerCommands)(deps);
(0, register_custom_scopes_commands_1.registerCommands)(deps);
applyCommandHelpGroups(deps);
}
-exports.registerCommands = registerCommands;
const registerEvents = ({ ui }) => {
process.on('unhandledRejection', async (reason) => {
await (0, cli_shared_1.exitOnError)(ui, reason);
});