aerc/commands/global.go

13 lines
178 B
Go

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