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