aerc/commands/terminal/terminal.go

17 lines
260 B
Go
Raw Normal View History

2019-03-21 20:32:22 +00:00
package terminal
import (
"git.sr.ht/~rjarry/aerc/commands"
2019-03-21 20:32:22 +00:00
)
var (
TerminalCommands *commands.Commands
)
func register(cmd commands.Command) {
2019-03-21 20:32:22 +00:00
if TerminalCommands == nil {
TerminalCommands = commands.NewCommands()
}
TerminalCommands.Register(cmd)
2019-03-21 20:32:22 +00:00
}