diff options
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) + } + } } |
