@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
22 lines (21 loc) • 1.05 kB
TypeScript
/**
* SwitchModeCommand - Switch the global edit-preference mode
*
* Updates `creatorTools.editPreference` to one of the three
* built-in modes:
* - focused → CreatorToolsEditPreference.summarized
* - full → CreatorToolsEditPreference.editors
* - raw → CreatorToolsEditPreference.raw
*
* The new preference is persisted via creatorTools.save() so the
* choice survives a reload.
*/
import type { IToolCommandMetadata, IToolCommandResult } from "../IToolCommand";
import { ToolCommandBase } from "../IToolCommand";
import type { IToolCommandContext } from "../IToolCommandContext";
export declare class SwitchModeCommand extends ToolCommandBase {
readonly metadata: IToolCommandMetadata;
execute(context: IToolCommandContext, args: string[], _flags: Record<string, string | boolean | string[]>): Promise<IToolCommandResult>;
getCompletions(_context: IToolCommandContext, _args: string[], partialArg: string, argIndex: number): Promise<string[]>;
}
export declare const switchModeCommand: SwitchModeCommand;