From 10dd23f05d271a27ad40a6fafffb5fe2c3e5fe57 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 21 Mar 2019 16:32:22 -0400 Subject: Add terminal command context --- commands/terminal/terminal.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 commands/terminal/terminal.go (limited to 'commands/terminal/terminal.go') diff --git a/commands/terminal/terminal.go b/commands/terminal/terminal.go new file mode 100644 index 00000000..f438582f --- /dev/null +++ b/commands/terminal/terminal.go @@ -0,0 +1,16 @@ +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) +} -- cgit