working srv status

This commit is contained in:
adman
2026-03-20 22:19:07 +01:00
parent 254b75e76b
commit a6102b7ec9
3 changed files with 11 additions and 5 deletions
+4 -2
View File
@@ -28,12 +28,14 @@ func Help(args []string) (err error) {
}
func mainE() (err error) {
slog.SetLogLoggerLevel(slog.LevelDebug)
subcommands["help"] = Help // this is here because if it isn't tools/cli/main.go:17:5: initialization cycle for subcommands
// tools/cli/main.go:17:5: subcommands refers to Help
// tools/cli/main.go:22:6: Help refers to subcommands
args := os.Args
args = []string{"TEST", "status", "-addr", "tcpshield.1f2d.net:25565"}
// Debug stuff
//slog.SetLogLoggerLevel(slog.LevelDebug)
//args = []string{"TEST", "status", "-srv", "-addr", "tcpshield.1f2d.net:25565"}
if len(args) < 2 {
err = ExpectedASubcommandErr