aboutsummaryrefslogtreecommitdiffstats
path: root/commands/suspend.go
blob: dc2d6b5af6b246f9a877a79c3154b1c1089efb46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package commands

import "git.sr.ht/~rjarry/aerc/lib/ui"

type Suspend struct{}

func init() {
	Register(Suspend{})
}

func (Suspend) Description() string {
	return "Suspend the aerc process."
}

func (Suspend) Context() CommandContext {
	return GLOBAL
}

func (Suspend) Aliases() []string {
	return []string{"suspend"}
}

func (Suspend) Execute(args []string) error {
	ui.QueueSuspend()
	return nil
}