summaryrefslogtreecommitdiff
path: root/commands/compose
diff options
context:
space:
mode:
Diffstat (limited to 'commands/compose')
-rw-r--r--commands/compose/abort.go6
-rw-r--r--commands/compose/attach.go6
-rw-r--r--commands/compose/cc-bcc.go6
-rw-r--r--commands/compose/detach.go6
-rw-r--r--commands/compose/edit.go6
-rw-r--r--commands/compose/next-field.go6
-rw-r--r--commands/compose/send.go6
7 files changed, 21 insertions, 21 deletions
diff --git a/commands/compose/abort.go b/commands/compose/abort.go
index 4c121d7..74d0395 100644
--- a/commands/compose/abort.go
+++ b/commands/compose/abort.go
@@ -12,15 +12,15 @@ func init() {
register(Abort{})
}
-func (_ Abort) Aliases() []string {
+func (Abort) Aliases() []string {
return []string{"abort"}
}
-func (_ Abort) Complete(aerc *widgets.Aerc, args []string) []string {
+func (Abort) Complete(aerc *widgets.Aerc, args []string) []string {
return nil
}
-func (_ Abort) Execute(aerc *widgets.Aerc, args []string) error {
+func (Abort) Execute(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: abort")
}
diff --git a/commands/compose/attach.go b/commands/compose/attach.go
index 7501a33..969d12e 100644
--- a/commands/compose/attach.go
+++ b/commands/compose/attach.go
@@ -17,11 +17,11 @@ func init() {
register(Attach{})
}
-func (_ Attach) Aliases() []string {
+func (Attach) Aliases() []string {
return []string{"attach"}
}
-func (_ Attach) Complete(aerc *widgets.Aerc, args []string) []string {
+func (Attach) Complete(aerc *widgets.Aerc, args []string) []string {
path := ""
if len(args) >= 1 {
path = args[0]
@@ -30,7 +30,7 @@ func (_ Attach) Complete(aerc *widgets.Aerc, args []string) []string {
return commands.CompletePath(path)
}
-func (_ Attach) Execute(aerc *widgets.Aerc, args []string) error {
+func (Attach) Execute(aerc *widgets.Aerc, args []string) error {
if len(args) != 2 {
return fmt.Errorf("Usage: :attach <path>")
}
diff --git a/commands/compose/cc-bcc.go b/commands/compose/cc-bcc.go
index db5f5b6..ce62242 100644
--- a/commands/compose/cc-bcc.go
+++ b/commands/compose/cc-bcc.go
@@ -12,15 +12,15 @@ func init() {
register(CC{})
}
-func (_ CC) Aliases() []string {
+func (CC) Aliases() []string {
return []string{"cc", "bcc"}
}
-func (_ CC) Complete(aerc *widgets.Aerc, args []string) []string {
+func (CC) Complete(aerc *widgets.Aerc, args []string) []string {
return nil
}
-func (_ CC) Execute(aerc *widgets.Aerc, args []string) error {
+func (CC) Execute(aerc *widgets.Aerc, args []string) error {
var addrs string
if len(args) > 1 {
addrs = strings.Join(args[1:], " ")
diff --git a/commands/compose/detach.go b/commands/compose/detach.go
index e700ab6..dc70ff9 100644
--- a/commands/compose/detach.go
+++ b/commands/compose/detach.go
@@ -14,17 +14,17 @@ func init() {
register(Detach{})
}
-func (_ Detach) Aliases() []string {
+func (Detach) Aliases() []string {
return []string{"detach"}
}
-func (_ Detach) Complete(aerc *widgets.Aerc, args []string) []string {
+func (Detach) Complete(aerc *widgets.Aerc, args []string) []string {
composer, _ := aerc.SelectedTab().(*widgets.Composer)
return composer.GetAttachments()
}
-func (_ Detach) Execute(aerc *widgets.Aerc, args []string) error {
+func (Detach) Execute(aerc *widgets.Aerc, args []string) error {
var path string
composer, _ := aerc.SelectedTab().(*widgets.Composer)
diff --git a/commands/compose/edit.go b/commands/compose/edit.go
index e888350..e788022 100644
--- a/commands/compose/edit.go
+++ b/commands/compose/edit.go
@@ -12,15 +12,15 @@ func init() {
register(Edit{})
}
-func (_ Edit) Aliases() []string {
+func (Edit) Aliases() []string {
return []string{"edit"}
}
-func (_ Edit) Complete(aerc *widgets.Aerc, args []string) []string {
+func (Edit) Complete(aerc *widgets.Aerc, args []string) []string {
return nil
}
-func (_ Edit) Execute(aerc *widgets.Aerc, args []string) error {
+func (Edit) Execute(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: edit")
}
diff --git a/commands/compose/next-field.go b/commands/compose/next-field.go
index 3496dfd..43ae644 100644
--- a/commands/compose/next-field.go
+++ b/commands/compose/next-field.go
@@ -13,15 +13,15 @@ func init() {
register(NextPrevField{})
}
-func (_ NextPrevField) Aliases() []string {
+func (NextPrevField) Aliases() []string {
return []string{"next-field", "prev-field"}
}
-func (_ NextPrevField) Complete(aerc *widgets.Aerc, args []string) []string {
+func (NextPrevField) Complete(aerc *widgets.Aerc, args []string) []string {
return nil
}
-func (_ NextPrevField) Execute(aerc *widgets.Aerc, args []string) error {
+func (NextPrevField) Execute(aerc *widgets.Aerc, args []string) error {
if len(args) > 2 {
return nextPrevFieldUsage(args[0])
}
diff --git a/commands/compose/send.go b/commands/compose/send.go
index 202d8c6..5a12428 100644
--- a/commands/compose/send.go
+++ b/commands/compose/send.go
@@ -28,15 +28,15 @@ func init() {
register(Send{})
}
-func (_ Send) Aliases() []string {
+func (Send) Aliases() []string {
return []string{"send"}
}
-func (_ Send) Complete(aerc *widgets.Aerc, args []string) []string {
+func (Send) Complete(aerc *widgets.Aerc, args []string) []string {
return nil
}
-func (_ Send) Execute(aerc *widgets.Aerc, args []string) error {
+func (Send) Execute(aerc *widgets.Aerc, args []string) error {
if len(args) > 1 {
return errors.New("Usage: send")
}