2019-05-12 15:21:28 +00:00
|
|
|
package compose
|
|
|
|
|
|
|
|
import (
|
2019-05-18 00:57:10 +00:00
|
|
|
"git.sr.ht/~sircmpwn/aerc/commands"
|
2019-05-12 15:21:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ComposeCommands *commands.Commands
|
|
|
|
)
|
|
|
|
|
2019-06-27 17:33:11 +00:00
|
|
|
func register(cmd commands.Command) {
|
2019-05-12 15:21:28 +00:00
|
|
|
if ComposeCommands == nil {
|
|
|
|
ComposeCommands = commands.NewCommands()
|
|
|
|
}
|
2019-06-27 17:33:11 +00:00
|
|
|
ComposeCommands.Register(cmd)
|
2019-05-12 15:21:28 +00:00
|
|
|
}
|