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