allow registering many commands at once
This commit is contained in:
parent
d9b257e145
commit
db21a53b2d
4
main.go
4
main.go
|
@ -8,8 +8,10 @@ import (
|
||||||
"git.rob.mx/nidito/chinampa/pkg/runtime"
|
"git.rob.mx/nidito/chinampa/pkg/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Register(cmd *command.Command) {
|
func Register(cmds ...*command.Command) {
|
||||||
|
for _, cmd := range cmds {
|
||||||
registry.Register(cmd.SetBindings())
|
registry.Register(cmd.SetBindings())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|
Loading…
Reference in New Issue