aboutsummaryrefslogblamecommitdiffstats
path: root/commands/terminal/close.go
blob: 610a846381024d559a0f9bd8188cc3087555e44a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                
                                    







                         
                                 


                                
                                           
                                                           
                    

                  
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
}