diff options
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | init.go | 2 | ||||
| -rw-r--r-- | structs.go | 2 | ||||
| -rw-r--r-- | testGui/main.go | 9 |
4 files changed, 11 insertions, 3 deletions
@@ -5,6 +5,7 @@ all: goimports: goimports -w *.go + make -C testGui/ goimports redomod: rm -f go.* @@ -1,8 +1,8 @@ package repolist import ( - "go.wit.com/lib/protobuf/forgepb" "go.wit.com/gui" + "go.wit.com/lib/protobuf/forgepb" "go.wit.com/log" ) @@ -24,7 +24,7 @@ type RepoList struct { // the main window and box mainWindow *gui.Node - mainbox *gui.Node + mainbox *gui.Node onlyMe bool goSrcPwd string 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 |
