aboutsummaryrefslogtreecommitdiff
path: root/commands/terminal/terminal.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-21 16:32:22 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-21 16:32:22 -0400
commit10dd23f05d271a27ad40a6fafffb5fe2c3e5fe57 (patch)
treea2fe85d9e0de5a972bfa7705558e7d50e95445c3 /commands/terminal/terminal.go
parent8126d82956636a2525263e2d0d985d721fdb8074 (diff)
Add terminal command context
Diffstat (limited to 'commands/terminal/terminal.go')
-rw-r--r--commands/terminal/terminal.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/commands/terminal/terminal.go b/commands/terminal/terminal.go
new file mode 100644
index 0000000..f438582
--- /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)
+}