diff options
Diffstat (limited to 'commands/terminal')
-rw-r--r-- | commands/terminal/close.go | 21 | ||||
-rw-r--r-- | commands/terminal/terminal.go | 14 |
2 files changed, 0 insertions, 35 deletions
diff --git a/commands/terminal/close.go b/commands/terminal/close.go deleted file mode 100644 index 610a8463..00000000 --- a/commands/terminal/close.go +++ /dev/null @@ -1,21 +0,0 @@ -package terminal - -import ( - "git.sr.ht/~rjarry/aerc/app" -) - -type Close struct{} - -func init() { - register(Close{}) -} - -func (Close) Aliases() []string { - return []string{"close"} -} - -func (Close) Execute(args []string) error { - term, _ := app.SelectedTabContent().(*app.Terminal) - term.Close() - return nil -} diff --git a/commands/terminal/terminal.go b/commands/terminal/terminal.go deleted file mode 100644 index edc8429f..00000000 --- a/commands/terminal/terminal.go +++ /dev/null @@ -1,14 +0,0 @@ -package terminal - -import ( - "git.sr.ht/~rjarry/aerc/commands" -) - -var TerminalCommands *commands.Commands - -func register(cmd commands.Command) { - if TerminalCommands == nil { - TerminalCommands = commands.NewCommands() - } - TerminalCommands.Register(cmd) -} |