aerc/commands/global.go

11 lines
173 B
Go

package commands
var GlobalCommands *Commands
func register(cmd Command) {
if GlobalCommands == nil {
GlobalCommands = NewCommands()
}
GlobalCommands.Register(cmd)
}