@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
32 lines (31 loc) • 1.36 kB
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.openSettingsCommand = exports.OpenSettingsCommand = void 0;
const IToolCommand_1 = require("../IToolCommand");
class OpenSettingsCommand extends IToolCommand_1.ToolCommandBase {
metadata = {
name: "settings",
description: "Show how to open the Settings panel",
aliases: ["prefs"],
category: "General",
isWriteCommand: false,
examples: ["/settings", "/prefs"],
};
async execute(context, _args, _flags) {
const lines = [
"Settings live on the Home screen — click the gear / 'Settings' button on the home page to open the Settings panel.",
"From there you can change theme, edit mode (Focused / Full / Raw), format-on-save, and other preferences.",
"Quick alternatives: use /mode <focused|full|raw> to switch edit mode, or /format for formatting guidance.",
];
for (const line of lines) {
context.output.info(line);
}
return this.success("Displayed Settings guidance", {
hint: "Home page → Settings panel",
});
}
}
exports.OpenSettingsCommand = OpenSettingsCommand;
exports.openSettingsCommand = new OpenSettingsCommand();