diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-01-09 19:18:19 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-01-09 19:28:43 -0500 |
commit | 39c93d2897af5bb0c145ef4f99f542bf42babdab (patch) | |
tree | 4a3d3ac3553b2d2f31960a7af35ea286b62597d7 /cmd | |
parent | aeb700577b5b2955c75093129e01de49b92f124f (diff) |
Load UI configuration
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/aerc/main.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cmd/aerc/main.go b/cmd/aerc/main.go index 24dcac8..96a8e0c 100644 --- a/cmd/aerc/main.go +++ b/cmd/aerc/main.go @@ -2,8 +2,17 @@ package main import ( "fmt" + + "git.sr.ht/~sircmpwn/aerc2/config" ) func main() { - fmt.Println("Hello world") + var ( + c *config.AercConfig + err error + ) + if c, err = config.LoadConfig(nil); err != nil { + panic(err) + } + fmt.Printf("%+v\n", *c) } |