UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

112 lines (111 loc) 9.09 kB
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); exports.allToolCommands = exports.OpenSettingsCommand = exports.openSettingsCommand = exports.FormatDocumentCommand = exports.formatDocumentCommand = exports.OpenFileCommand = exports.openFileCommand = exports.ReloadProjectCommand = exports.reloadProjectCommand = exports.ToggleInspectorCommand = exports.toggleInspectorCommand = exports.SwitchModeCommand = exports.switchModeCommand = exports.DeployCommand = exports.deployCommand = exports.ExportCommand = exports.exportCommand = exports.InfoCommand = exports.infoCommand = exports.ValidateCommand = exports.validateCommand = exports.OpenSampleCommand = exports.openSampleCommand = exports.ScriptCommand = exports.scriptCommand = exports.RenameCommand = exports.renameCommand = exports.RemoveCommand = exports.removeCommand = exports.AddCommand = exports.addCommand = exports.CreateCommand = exports.createCommand = exports.HelpCommand = exports.helpCommand = void 0; exports.registerAllToolCommands = registerAllToolCommands; /** * Command index - exports all ToolCommands * * NOTE: ServerCommand is NOT exported here because it imports Node.js-only * modules (net, child_process, os, timers) via DedicatedServer.ts. * Use registerNodeOnlyCommands() to register it in Node.js entry points. */ var HelpCommand_1 = require("./HelpCommand"); Object.defineProperty(exports, "helpCommand", { enumerable: true, get: function () { return HelpCommand_1.helpCommand; } }); Object.defineProperty(exports, "HelpCommand", { enumerable: true, get: function () { return HelpCommand_1.HelpCommand; } }); var CreateCommand_1 = require("./CreateCommand"); Object.defineProperty(exports, "createCommand", { enumerable: true, get: function () { return CreateCommand_1.createCommand; } }); Object.defineProperty(exports, "CreateCommand", { enumerable: true, get: function () { return CreateCommand_1.CreateCommand; } }); var AddCommand_1 = require("./AddCommand"); Object.defineProperty(exports, "addCommand", { enumerable: true, get: function () { return AddCommand_1.addCommand; } }); Object.defineProperty(exports, "AddCommand", { enumerable: true, get: function () { return AddCommand_1.AddCommand; } }); var RemoveCommand_1 = require("./RemoveCommand"); Object.defineProperty(exports, "removeCommand", { enumerable: true, get: function () { return RemoveCommand_1.removeCommand; } }); Object.defineProperty(exports, "RemoveCommand", { enumerable: true, get: function () { return RemoveCommand_1.RemoveCommand; } }); var RenameCommand_1 = require("./RenameCommand"); Object.defineProperty(exports, "renameCommand", { enumerable: true, get: function () { return RenameCommand_1.renameCommand; } }); Object.defineProperty(exports, "RenameCommand", { enumerable: true, get: function () { return RenameCommand_1.RenameCommand; } }); var ScriptCommand_1 = require("./ScriptCommand"); Object.defineProperty(exports, "scriptCommand", { enumerable: true, get: function () { return ScriptCommand_1.scriptCommand; } }); Object.defineProperty(exports, "ScriptCommand", { enumerable: true, get: function () { return ScriptCommand_1.ScriptCommand; } }); var OpenSampleCommand_1 = require("./OpenSampleCommand"); Object.defineProperty(exports, "openSampleCommand", { enumerable: true, get: function () { return OpenSampleCommand_1.openSampleCommand; } }); Object.defineProperty(exports, "OpenSampleCommand", { enumerable: true, get: function () { return OpenSampleCommand_1.OpenSampleCommand; } }); var ValidateCommand_1 = require("./ValidateCommand"); Object.defineProperty(exports, "validateCommand", { enumerable: true, get: function () { return ValidateCommand_1.validateCommand; } }); Object.defineProperty(exports, "ValidateCommand", { enumerable: true, get: function () { return ValidateCommand_1.ValidateCommand; } }); var InfoCommand_1 = require("./InfoCommand"); Object.defineProperty(exports, "infoCommand", { enumerable: true, get: function () { return InfoCommand_1.infoCommand; } }); Object.defineProperty(exports, "InfoCommand", { enumerable: true, get: function () { return InfoCommand_1.InfoCommand; } }); var ExportCommand_1 = require("./ExportCommand"); Object.defineProperty(exports, "exportCommand", { enumerable: true, get: function () { return ExportCommand_1.exportCommand; } }); Object.defineProperty(exports, "ExportCommand", { enumerable: true, get: function () { return ExportCommand_1.ExportCommand; } }); var DeployCommand_1 = require("./DeployCommand"); Object.defineProperty(exports, "deployCommand", { enumerable: true, get: function () { return DeployCommand_1.deployCommand; } }); Object.defineProperty(exports, "DeployCommand", { enumerable: true, get: function () { return DeployCommand_1.DeployCommand; } }); var SwitchModeCommand_1 = require("./SwitchModeCommand"); Object.defineProperty(exports, "switchModeCommand", { enumerable: true, get: function () { return SwitchModeCommand_1.switchModeCommand; } }); Object.defineProperty(exports, "SwitchModeCommand", { enumerable: true, get: function () { return SwitchModeCommand_1.SwitchModeCommand; } }); var ToggleInspectorCommand_1 = require("./ToggleInspectorCommand"); Object.defineProperty(exports, "toggleInspectorCommand", { enumerable: true, get: function () { return ToggleInspectorCommand_1.toggleInspectorCommand; } }); Object.defineProperty(exports, "ToggleInspectorCommand", { enumerable: true, get: function () { return ToggleInspectorCommand_1.ToggleInspectorCommand; } }); var ReloadProjectCommand_1 = require("./ReloadProjectCommand"); Object.defineProperty(exports, "reloadProjectCommand", { enumerable: true, get: function () { return ReloadProjectCommand_1.reloadProjectCommand; } }); Object.defineProperty(exports, "ReloadProjectCommand", { enumerable: true, get: function () { return ReloadProjectCommand_1.ReloadProjectCommand; } }); var OpenFileCommand_1 = require("./OpenFileCommand"); Object.defineProperty(exports, "openFileCommand", { enumerable: true, get: function () { return OpenFileCommand_1.openFileCommand; } }); Object.defineProperty(exports, "OpenFileCommand", { enumerable: true, get: function () { return OpenFileCommand_1.OpenFileCommand; } }); var FormatDocumentCommand_1 = require("./FormatDocumentCommand"); Object.defineProperty(exports, "formatDocumentCommand", { enumerable: true, get: function () { return FormatDocumentCommand_1.formatDocumentCommand; } }); Object.defineProperty(exports, "FormatDocumentCommand", { enumerable: true, get: function () { return FormatDocumentCommand_1.FormatDocumentCommand; } }); var OpenSettingsCommand_1 = require("./OpenSettingsCommand"); Object.defineProperty(exports, "openSettingsCommand", { enumerable: true, get: function () { return OpenSettingsCommand_1.openSettingsCommand; } }); Object.defineProperty(exports, "OpenSettingsCommand", { enumerable: true, get: function () { return OpenSettingsCommand_1.OpenSettingsCommand; } }); const HelpCommand_2 = require("./HelpCommand"); const CreateCommand_2 = require("./CreateCommand"); const AddCommand_2 = require("./AddCommand"); const RemoveCommand_2 = require("./RemoveCommand"); const RenameCommand_2 = require("./RenameCommand"); const ScriptCommand_2 = require("./ScriptCommand"); const OpenSampleCommand_2 = require("./OpenSampleCommand"); const ValidateCommand_2 = require("./ValidateCommand"); const InfoCommand_2 = require("./InfoCommand"); const ExportCommand_2 = require("./ExportCommand"); const DeployCommand_2 = require("./DeployCommand"); const SwitchModeCommand_2 = require("./SwitchModeCommand"); const ToggleInspectorCommand_2 = require("./ToggleInspectorCommand"); const ReloadProjectCommand_2 = require("./ReloadProjectCommand"); const OpenFileCommand_2 = require("./OpenFileCommand"); const FormatDocumentCommand_2 = require("./FormatDocumentCommand"); const OpenSettingsCommand_2 = require("./OpenSettingsCommand"); const ToolCommandRegistry_1 = require("../ToolCommandRegistry"); /** * All built-in ToolCommands that are safe for all build targets (web, Node.js, Electron). * ServerCommand is excluded because it transitively imports Node.js-only modules. */ exports.allToolCommands = [ HelpCommand_2.helpCommand, CreateCommand_2.createCommand, AddCommand_2.addCommand, RemoveCommand_2.removeCommand, RenameCommand_2.renameCommand, ScriptCommand_2.scriptCommand, OpenSampleCommand_2.openSampleCommand, ValidateCommand_2.validateCommand, InfoCommand_2.infoCommand, ExportCommand_2.exportCommand, DeployCommand_2.deployCommand, SwitchModeCommand_2.switchModeCommand, ToggleInspectorCommand_2.toggleInspectorCommand, ReloadProjectCommand_2.reloadProjectCommand, OpenFileCommand_2.openFileCommand, FormatDocumentCommand_2.formatDocumentCommand, OpenSettingsCommand_2.openSettingsCommand, ]; /** * Register all platform-safe built-in commands with the registry. */ function registerAllToolCommands() { ToolCommandRegistry_1.ToolCommandRegistry.instance.registerAll(exports.allToolCommands); }