aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/aerc/main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/aerc/main.go b/cmd/aerc/main.go
index 96a8e0c..2627a71 100644
--- a/cmd/aerc/main.go
+++ b/cmd/aerc/main.go
@@ -4,6 +4,8 @@ import (
"fmt"
"git.sr.ht/~sircmpwn/aerc2/config"
+ "git.sr.ht/~sircmpwn/aerc2/worker"
+ "git.sr.ht/~sircmpwn/aerc2/worker/types"
)
func main() {
@@ -15,4 +17,12 @@ func main() {
panic(err)
}
fmt.Printf("%+v\n", *c)
+ w := worker.NewWorker("")
+ go w.Run()
+ w.PostAction(types.Ping{})
+ for {
+ if msg := w.GetMessage(); msg != nil {
+ fmt.Printf("<- %T: %v\n", msg, msg)
+ }
+ }
}