compiles. kinda runs

This commit is contained in:
Jeff Carr 2024-11-28 18:36:00 -06:00
parent be0378f548
commit cc7a1b0bdc
4 changed files with 11 additions and 3 deletions

View File

@ -5,6 +5,7 @@ all:
goimports: goimports:
goimports -w *.go goimports -w *.go
make -C testGui/ goimports
redomod: redomod:
rm -f go.* rm -f go.*

View File

@ -1,8 +1,8 @@
package repolist package repolist
import ( import (
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/gui" "go.wit.com/gui"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/log" "go.wit.com/log"
) )

View File

@ -24,7 +24,7 @@ type RepoList struct {
// the main window and box // the main window and box
mainWindow *gui.Node mainWindow *gui.Node
mainbox *gui.Node mainbox *gui.Node
onlyMe bool onlyMe bool
goSrcPwd string goSrcPwd string

View File

@ -8,6 +8,7 @@ import (
"go.wit.com/gui" "go.wit.com/gui"
"go.wit.com/lib/gui/repolist" "go.wit.com/lib/gui/repolist"
"go.wit.com/lib/protobuf/forgepb"
) )
// sent via -ldflags // sent via -ldflags
@ -18,7 +19,13 @@ func main() {
me = new(autoType) me = new(autoType)
// load the ~/.config/forge/ config // 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() me.forge.ConfigPrintTable()
// setup the GUI // setup the GUI