summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go37
1 files changed, 19 insertions, 18 deletions
diff --git a/main.go b/main.go
index 7f78565..03e8786 100644
--- a/main.go
+++ b/main.go
@@ -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)
+ }
+ }
}