1
0
mirror of https://git.sr.ht/~sircmpwn/aerc synced 2024-11-23 16:42:07 +01:00
aerc/commands/global.go
2019-03-21 16:30:23 -04:00

13 lines
201 B
Go

package commands
var (
GlobalCommands *Commands
)
func register(name string, cmd AercCommand) {
if GlobalCommands == nil {
GlobalCommands = NewCommands()
}
GlobalCommands.Register(name, cmd)
}