New account wizard, part one
This commit is contained in:
parent
176245208d
commit
6811143925
7 changed files with 683 additions and 13 deletions
commands
20
commands/new-account.go
Normal file
20
commands/new-account.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue