summaryrefslogtreecommitdiff
path: root/testGui/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-28 18:36:00 -0600
committerJeff Carr <[email protected]>2024-11-28 18:36:00 -0600
commitcc7a1b0bdc69335132a022111c759931db6d1566 (patch)
treea2d2afaa3c1e53232c63ed4ff31759665c15a59a /testGui/main.go
parentbe0378f5486184b69b5da59461786477d753b8a3 (diff)
compiles. kinda runs
Diffstat (limited to 'testGui/main.go')
-rw-r--r--testGui/main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/testGui/main.go b/testGui/main.go
index f372bc1..c6880c1 100644
--- a/testGui/main.go
+++ b/testGui/main.go
@@ -8,6 +8,7 @@ import (
"go.wit.com/gui"
"go.wit.com/lib/gui/repolist"
+ "go.wit.com/lib/protobuf/forgepb"
)
// sent via -ldflags
@@ -18,7 +19,13 @@ func main() {
me = new(autoType)
// load the ~/.config/forge/ config
- me.forge.Init()
+ me.forge = forgepb.Init()
+ if me.forge == nil {
+ panic("damn it, forge is nil")
+ }
+ if me.forge.Config == nil {
+ panic("damn it config")
+ }
me.forge.ConfigPrintTable()
// setup the GUI