1
0
mirror of https://git.sr.ht/~sircmpwn/aerc synced 2024-12-04 17:48:13 +01:00
aerc/commands/terminal/terminal.go

17 lines
286 B
Go
Raw Normal View History

2019-03-21 21:32:22 +01:00
package terminal
import (
"git.sr.ht/~sircmpwn/aerc2/commands"
)
var (
TerminalCommands *commands.Commands
)
func register(name string, cmd commands.AercCommand) {
if TerminalCommands == nil {
TerminalCommands = commands.NewCommands()
}
TerminalCommands.Register(name, cmd)
}