aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/copy.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/copy.go')
-rw-r--r--commands/msg/copy.go15
1 files changed, 12 insertions, 3 deletions
diff --git a/commands/msg/copy.go b/commands/msg/copy.go
index 0735e98f..4d65d249 100644
--- a/commands/msg/copy.go
+++ b/commands/msg/copy.go
@@ -11,12 +11,21 @@ import (
"git.sr.ht/~sircmpwn/aerc/worker/types"
)
+type Copy struct{}
+
func init() {
- register("cp", Copy)
- register("copy", Copy)
+ register(Copy{})
+}
+
+func (_ Copy) Aliases() []string {
+ return []string{"copy"}
+}
+
+func (_ Copy) Complete(aerc *widgets.Aerc, args []string) []string {
+ return nil
}
-func Copy(aerc *widgets.Aerc, args []string) error {
+func (_ Copy) Execute(aerc *widgets.Aerc, args []string) error {
opts, optind, err := getopt.Getopts(args, "p")
if err != nil {
return err