feat: add 'pk;log show' command

This commit is contained in:
spiral
2022-06-02 22:36:42 -04:00
parent c87979ef03
commit 0ee0e75e02
4 changed files with 56 additions and 1 deletions

View File

@@ -57,6 +57,8 @@ public partial class CommandTree
return ctx.Execute<ServerConfig>(LogEnable, m => m.SetLogEnabled(ctx, true));
else if (ctx.Match("disable", "off"))
return ctx.Execute<ServerConfig>(LogDisable, m => m.SetLogEnabled(ctx, false));
else if (ctx.Match("list", "show"))
return ctx.Execute<ServerConfig>(LogShow, m => m.ShowLogDisabledChannels(ctx));
else if (ctx.Match("commands"))
return PrintCommandList(ctx, "message logging", LogCommands);
else return PrintCommandExpectedError(ctx, LogCommands);