aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose/cc-bcc.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/compose/cc-bcc.go')
-rw-r--r--commands/compose/cc-bcc.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/compose/cc-bcc.go b/commands/compose/cc-bcc.go
index d54a9895..92f792f1 100644
--- a/commands/compose/cc-bcc.go
+++ b/commands/compose/cc-bcc.go
@@ -6,7 +6,7 @@ import (
)
type CC struct {
- Recipients string `opt:"recipients"`
+ Recipients string `opt:"recipients" complete:"CompleteAddress"`
}
func init() {
@@ -21,6 +21,10 @@ func (CC) Aliases() []string {
return []string{"cc", "bcc"}
}
+func (*CC) CompleteAddress(arg string) []string {
+ return commands.GetAddress(arg)
+}
+
func (c CC) Execute(args []string) error {
composer, _ := app.SelectedTabContent().(*app.Composer)