allow registering many commands at once
This commit is contained in:
parent
d9b257e145
commit
db21a53b2d
6
main.go
6
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) {
|
||||||
registry.Register(cmd.SetBindings())
|
for _, cmd := range cmds {
|
||||||
|
registry.Register(cmd.SetBindings())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|
Loading…
Reference in New Issue