mirror of
https://git.sr.ht/~sircmpwn/aerc
synced 2024-12-04 17:48:13 +01:00
13 lines
201 B
Go
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)
|
|
}
|