mirror of
https://github.com/CosmicStar98/bedrocktool.git
synced 2024-06-25 22:59:44 +00:00
17 lines
252 B
Go
17 lines
252 B
Go
package utils
|
|
|
|
import (
|
|
"github.com/google/subcommands"
|
|
)
|
|
|
|
var ValidCMDs = make(map[string]Command, 0)
|
|
|
|
type Command interface {
|
|
subcommands.Command
|
|
}
|
|
|
|
func RegisterCommand(sub Command) {
|
|
subcommands.Register(sub, "")
|
|
ValidCMDs[sub.Name()] = sub
|
|
}
|