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 -w *.go
make -C testGui/ goimports
redomod:
rm -f go.*

View File

@ -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"
)

View File

@ -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