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