commands/suspend.go
raw| 1 | package commands |
| 2 | |
| 3 | import "git.sr.ht/~rjarry/aerc/lib/ui" |
| 4 | |
| 5 | type Suspend struct{} |
| 6 | |
| 7 | func init() { |
| 8 | Register(Suspend{}) |
| 9 | } |
| 10 | |
| 11 | func (Suspend) Description() string { |
| 12 | return "Suspend the aerc process." |
| 13 | } |
| 14 | |
| 15 | func (Suspend) Context() CommandContext { |
| 16 | return GLOBAL |
| 17 | } |
| 18 | |
| 19 | func (Suspend) Aliases() []string { |
| 20 | return []string{"suspend"} |
| 21 | } |
| 22 | |
| 23 | func (Suspend) Execute(args []string) error { |
| 24 | ui.QueueSuspend() |
| 25 | return nil |
| 26 | } |