@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
35 lines (34 loc) • 1.89 kB
TypeScript
/**
* 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.
*/
export { helpCommand, HelpCommand } from "./HelpCommand";
export { createCommand, CreateCommand } from "./CreateCommand";
export { addCommand, AddCommand } from "./AddCommand";
export { removeCommand, RemoveCommand } from "./RemoveCommand";
export { renameCommand, RenameCommand } from "./RenameCommand";
export { scriptCommand, ScriptCommand } from "./ScriptCommand";
export { openSampleCommand, OpenSampleCommand } from "./OpenSampleCommand";
export { validateCommand, ValidateCommand } from "./ValidateCommand";
export { infoCommand, InfoCommand } from "./InfoCommand";
export { exportCommand, ExportCommand } from "./ExportCommand";
export { deployCommand, DeployCommand } from "./DeployCommand";
export { switchModeCommand, SwitchModeCommand } from "./SwitchModeCommand";
export { toggleInspectorCommand, ToggleInspectorCommand } from "./ToggleInspectorCommand";
export { reloadProjectCommand, ReloadProjectCommand } from "./ReloadProjectCommand";
export { openFileCommand, OpenFileCommand } from "./OpenFileCommand";
export { formatDocumentCommand, FormatDocumentCommand } from "./FormatDocumentCommand";
export { openSettingsCommand, OpenSettingsCommand } from "./OpenSettingsCommand";
import type { IToolCommand } from "../IToolCommand";
/**
* 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.
*/
export declare const allToolCommands: IToolCommand[];
/**
* Register all platform-safe built-in commands with the registry.
*/
export declare function registerAllToolCommands(): void;