UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

23 lines (22 loc) 1.03 kB
/** * HelpCommand - Unified help for ToolCommands and Bedrock commands * * This is the ONE command that overrides Bedrock's built-in /help. * It provides unified documentation for both MCT ToolCommands and * Bedrock server commands. */ import type { IToolCommandMetadata, IToolCommandResult } from "../IToolCommand"; import { ToolCommandBase } from "../IToolCommand"; import type { IToolCommandContext } from "../IToolCommandContext"; export declare class HelpCommand extends ToolCommandBase { readonly metadata: IToolCommandMetadata; execute(context: IToolCommandContext, args: string[], _flags: Record<string, string | boolean | string[]>): Promise<IToolCommandResult>; private showAllHelp; private showCommandHelp; private showToolCommandHelp; /** * Override getCompletions to provide command name suggestions. */ getCompletions(context: IToolCommandContext, args: string[], partialArg: string, argIndex: number): Promise<string[]>; } export declare const helpCommand: HelpCommand;