aboutsummaryrefslogtreecommitdiff
path: root/commands/compose/abort.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/compose/abort.go')
-rw-r--r--commands/compose/abort.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/commands/compose/abort.go b/commands/compose/abort.go
index c60793c..4c121d7 100644
--- a/commands/compose/abort.go
+++ b/commands/compose/abort.go
@@ -6,11 +6,21 @@ import (
"git.sr.ht/~sircmpwn/aerc/widgets"
)
+type Abort struct{}
+
func init() {
- register("abort", CommandAbort)
+ register(Abort{})
+}
+
+func (_ Abort) Aliases() []string {
+ return []string{"abort"}
+}
+
+func (_ Abort) Complete(aerc *widgets.Aerc, args []string) []string {
+ return nil
}
-func CommandAbort(aerc *widgets.Aerc, args []string) error {
+func (_ Abort) Execute(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: abort")
}