From 598e4a5803578ab3e291f232d6aad31b4efd8ea4 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Mon, 9 Oct 2023 13:52:20 +0200 Subject: 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 Acked-by: Moritz Poldrack --- commands/new-account.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'commands/new-account.go') diff --git a/commands/new-account.go b/commands/new-account.go index d67b5eca..3170c75c 100644 --- a/commands/new-account.go +++ b/commands/new-account.go @@ -3,7 +3,7 @@ package commands import ( "errors" - "git.sr.ht/~rjarry/aerc/widgets" + "git.sr.ht/~rjarry/aerc/app" "git.sr.ht/~sircmpwn/getopt" ) @@ -17,16 +17,16 @@ func (NewAccount) Aliases() []string { return []string{"new-account"} } -func (NewAccount) Complete(aerc *widgets.Aerc, args []string) []string { +func (NewAccount) Complete(aerc *app.Aerc, args []string) []string { return nil } -func (NewAccount) Execute(aerc *widgets.Aerc, args []string) error { +func (NewAccount) Execute(aerc *app.Aerc, args []string) error { opts, _, err := getopt.Getopts(args, "t") if err != nil { return errors.New("Usage: new-account [-t]") } - wizard := widgets.NewAccountWizard(aerc) + wizard := app.NewAccountWizard(aerc) for _, opt := range opts { if opt.Option == 't' { wizard.ConfigureTemporaryAccount(true) -- cgit