New account wizard, part one

This commit is contained in:
Drew DeVault 2019-05-21 16:31:04 -04:00
commit 6811143925
7 changed files with 683 additions and 13 deletions

20
commands/new-account.go Normal file
View file

@ -0,0 +1,20 @@
package commands
import (
"errors"
"git.sr.ht/~sircmpwn/aerc/widgets"
)
func init() {
register("new-account", CommandNewAccount)
}
func CommandNewAccount(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: new-account")
}
wizard := widgets.NewAccountWizard()
aerc.NewTab(wizard, "New account")
return nil
}