aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose/postpone.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-10-09 13:52:20 +0200
committerRobin Jarry <robin@jarry.cc>2023-10-10 11:37:56 +0200
commit598e4a5803578ab3e291f232d6aad31b4efd8ea4 (patch)
treec55e16d60e2c3eea2d6de27d1bac18db5670ec77 /commands/compose/postpone.go
parent61bca76423ee87bd59084a146eca71c6bae085e1 (diff)
downloadaerc-598e4a5803578ab3e291f232d6aad31b4efd8ea4.tar.gz
widgets: rename package to app
This is the central point of all aerc. Having it named widgets is confusing. Rename it to app. It will make a cleaner transition when making the app.Aerc object available globally in the next commit. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'commands/compose/postpone.go')
-rw-r--r--commands/compose/postpone.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/commands/compose/postpone.go b/commands/compose/postpone.go
index fd59cc11..e33c9ab7 100644
--- a/commands/compose/postpone.go
+++ b/commands/compose/postpone.go
@@ -8,10 +8,10 @@ import (
"git.sr.ht/~sircmpwn/getopt"
+ "git.sr.ht/~rjarry/aerc/app"
"git.sr.ht/~rjarry/aerc/commands"
"git.sr.ht/~rjarry/aerc/log"
"git.sr.ht/~rjarry/aerc/models"
- "git.sr.ht/~rjarry/aerc/widgets"
"git.sr.ht/~rjarry/aerc/worker/types"
)
@@ -29,7 +29,7 @@ func (Postpone) Options() string {
return "t:"
}
-func (Postpone) CompleteOption(aerc *widgets.Aerc, r rune, arg string) []string {
+func (Postpone) CompleteOption(aerc *app.Aerc, r rune, arg string) []string {
var valid []string
if r == 't' {
valid = commands.GetFolders(aerc, []string{arg})
@@ -37,11 +37,11 @@ func (Postpone) CompleteOption(aerc *widgets.Aerc, r rune, arg string) []string
return commands.CompletionFromList(aerc, valid, []string{arg})
}
-func (Postpone) Complete(aerc *widgets.Aerc, args []string) []string {
+func (Postpone) Complete(aerc *app.Aerc, args []string) []string {
return nil
}
-func (p Postpone) Execute(aerc *widgets.Aerc, args []string) error {
+func (p Postpone) Execute(aerc *app.Aerc, args []string) error {
opts, optind, err := getopt.Getopts(args, p.Options())
if err != nil {
return err
@@ -55,7 +55,7 @@ func (p Postpone) Execute(aerc *widgets.Aerc, args []string) error {
if tab == nil {
return errors.New("No tab selected")
}
- composer, _ := tab.Content.(*widgets.Composer)
+ composer, _ := tab.Content.(*app.Composer)
config := composer.Config()
tabName := tab.Name