feat: Expose more commands in help (#1824)

This commit is contained in:
KazWolfe 2024-06-06 10:26:00 -07:00 committed by GitHub
parent c21e525472
commit e6da98646a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,19 +25,19 @@ internal class DalamudCommands : IServiceType
{ {
commandManager.AddHandler("/xldclose", new CommandInfo(this.OnUnloadCommand) commandManager.AddHandler("/xldclose", new CommandInfo(this.OnUnloadCommand)
{ {
HelpMessage = Loc.Localize("DalamudUnloadHelp", "Unloads XIVLauncher in-game addon."), HelpMessage = Loc.Localize("DalamudUnloadHelp", "Unloads XIVLauncher in-game addon. For debug use only!"),
ShowInHelp = false, ShowInHelp = false,
}); });
commandManager.AddHandler("/xlkill", new CommandInfo(this.OnKillCommand) commandManager.AddHandler("/xlkill", new CommandInfo(this.OnKillCommand)
{ {
HelpMessage = "Kill the game.", HelpMessage = "Kill the game. For debug use only!",
ShowInHelp = false, ShowInHelp = false,
}); });
commandManager.AddHandler("/xlrestart", new CommandInfo(this.OnRestartCommand) commandManager.AddHandler("/xlrestart", new CommandInfo(this.OnRestartCommand)
{ {
HelpMessage = "Restart the game.", HelpMessage = "Restart the game. For debug use only!",
ShowInHelp = false, ShowInHelp = false,
}); });
@ -80,13 +80,11 @@ internal class DalamudCommands : IServiceType
commandManager.AddHandler("/xlstats", new CommandInfo(this.OnTogglePluginStats) commandManager.AddHandler("/xlstats", new CommandInfo(this.OnTogglePluginStats)
{ {
HelpMessage = Loc.Localize("DalamudPluginStats", "Draw plugin statistics window"), HelpMessage = Loc.Localize("DalamudPluginStats", "Draw plugin statistics window"),
ShowInHelp = false,
}); });
commandManager.AddHandler("/xlbranch", new CommandInfo(this.OnToggleBranchSwitcher) commandManager.AddHandler("/xlbranch", new CommandInfo(this.OnToggleBranchSwitcher)
{ {
HelpMessage = Loc.Localize("DalamudBranchSwitcher", "Draw branch switcher"), HelpMessage = Loc.Localize("DalamudBranchSwitcher", "Open the branch switcher"),
ShowInHelp = false,
}); });
commandManager.AddHandler("/xldata", new CommandInfo(this.OnDebugDrawDataMenu) commandManager.AddHandler("/xldata", new CommandInfo(this.OnDebugDrawDataMenu)
@ -97,8 +95,7 @@ internal class DalamudCommands : IServiceType
commandManager.AddHandler("/xllog", new CommandInfo(this.OnOpenLog) commandManager.AddHandler("/xllog", new CommandInfo(this.OnOpenLog)
{ {
HelpMessage = Loc.Localize("DalamudDevLogHelp", "Open dev log DEBUG"), HelpMessage = Loc.Localize("DalamudDevLogHelp", "Open the plugin log window/console"),
ShowInHelp = false,
}); });
commandManager.AddHandler("/xlplugins", new CommandInfo(this.OnOpenInstallerCommand) commandManager.AddHandler("/xlplugins", new CommandInfo(this.OnOpenInstallerCommand)