diff options
| author | Jeff Carr <[email protected]> | 2024-12-14 22:15:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-14 22:15:13 -0600 |
| commit | edfa36b419e0be1a46ee8150e408b08ef381ed02 (patch) | |
| tree | 3f59bc2b644c4be38d984dd1c855bfd51eef07fe /main.go | |
| parent | dbc9206065c47746e1ee493d3a1d9c48306584b2 (diff) | |
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 37 |
1 files changed, 19 insertions, 18 deletions
@@ -1,29 +1,30 @@ package main -import ( +import ( + "go.wit.com/lib/protobuf/forgepb" "go.wit.com/log" - "go.wit.com/gui" ) -var myGui *gui.Node // This is the beginning of the binary tree of widgets - // go will sit here until the window exits func main() { - myGui = gui.New().Default() - // myGui.LoadToolkit("nocui") + forge := forgepb.Init() + all := forge.Repos.SortByGoPath() + for all.Scan() { + check := all.Next() - buildworld() - gui.Watchdog() -} + repotype := check.RepoType() + if repotype != "plugin" { + continue + } -// This initializes the first window, a group and a button -func buildworld() { - window := myGui.NewWindow("build world") + if forge.Config.IsReadOnly(check.GoPath) { + // ignore read only stuff + continue + } - box := window.NewBox("vbox", false) - group := box.NewGroup("groupy") - grid := group.NewGrid("gridiron", 2, 1) - grid.NewButton("build", func() { - log.Println("make something to build everything") - }) + log.Info("STARTING 'make install' in", check.GoPath) + if err := forge.Install(check, nil); err != nil { + log.Warn("INSTALL FAILED", check.GoPath, err) + } + } } |
