aerc/commands/msg/msg.go
Kevin Kuehler 753adb9069 widget: Add ProvidesMessage interface
Consists of 3 functions
* Store: Access to MessageStore type
* SelectedAccount: Access to Account widget that the target widget
belongs to
* SelectedMessage: Current message (selected in msglist or the one we
are viewing)

Signed-off-by: Kevin Kuehler <keur@ocf.berkeley.edu>
2019-06-02 10:16:29 -04:00

16 lines
276 B
Go

package msg
import (
"git.sr.ht/~sircmpwn/aerc/commands"
)
var (
MessageCommands *commands.Commands
)
func register(name string, cmd commands.AercCommand) {
if MessageCommands == nil {
MessageCommands = commands.NewCommands()
}
MessageCommands.Register(name, cmd)
}