2019-06-02 07:15:04 +02:00
|
|
|
package msg
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.sr.ht/~sircmpwn/aerc/commands"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
MessageCommands *commands.Commands
|
|
|
|
)
|
|
|
|
|
2019-06-27 19:33:11 +02:00
|
|
|
func register(cmd commands.Command) {
|
2019-06-02 07:15:04 +02:00
|
|
|
if MessageCommands == nil {
|
|
|
|
MessageCommands = commands.NewCommands()
|
|
|
|
}
|
2019-06-27 19:33:11 +02:00
|
|
|
MessageCommands.Register(cmd)
|
2019-06-02 07:15:04 +02:00
|
|
|
}
|