bedrocktool/utils/command_register.go

11 lines
220 B
Go
Raw Normal View History

2022-09-04 14:26:32 +00:00
package utils
import "github.com/google/subcommands"
var ValidCMDs = make(map[string]string, 0)
func RegisterCommand(sub subcommands.Command) {
subcommands.Register(sub, "")
ValidCMDs[sub.Name()] = sub.Synopsis()
}