parent
fb3826cee5
commit
b275a394e2
2 changed files with 31 additions and 4 deletions
8
aerc.go
8
aerc.go
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
|
@ -9,12 +10,12 @@ import (
|
|||
|
||||
"github.com/mattn/go-isatty"
|
||||
|
||||
"git.sr.ht/~sircmpwn/aerc2/config"
|
||||
"git.sr.ht/~sircmpwn/aerc2/commands"
|
||||
"git.sr.ht/~sircmpwn/aerc2/commands/account"
|
||||
"git.sr.ht/~sircmpwn/aerc2/commands/compose"
|
||||
"git.sr.ht/~sircmpwn/aerc2/commands/msgview"
|
||||
"git.sr.ht/~sircmpwn/aerc2/commands/terminal"
|
||||
"git.sr.ht/~sircmpwn/aerc2/config"
|
||||
libui "git.sr.ht/~sircmpwn/aerc2/lib/ui"
|
||||
"git.sr.ht/~sircmpwn/aerc2/widgets"
|
||||
)
|
||||
|
@ -61,7 +62,8 @@ func main() {
|
|||
|
||||
conf, err := config.LoadConfig(nil)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
fmt.Printf("Failed to load config: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
var (
|
||||
|
@ -73,7 +75,7 @@ func main() {
|
|||
for i, set := range cmds {
|
||||
err := set.ExecuteCommand(aerc, cmd)
|
||||
if _, ok := err.(commands.NoSuchCommand); ok {
|
||||
if i == len(cmds) - 1 {
|
||||
if i == len(cmds)-1 {
|
||||
return err
|
||||
} else {
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue