go-gui-toolkits/main.go

34 lines
647 B
Go

package main
import (
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/log"
)
// go will sit here until the window exits
func main() {
// read in forge info
cfg := configInit()
forge := forgepb.InitFromConfig(cfg)
all := forge.Repos.SortByFullPath()
for all.Scan() {
check := all.Next()
repotype := check.GetRepoType()
if repotype != "plugin" {
continue
}
if forge.Config.IsReadOnly(check.GetGoPath()) {
// ignore read only stuff
continue
}
log.Info("STARTING 'make install' in", check.GetGoPath())
if err := forge.Install(check, nil); err != nil {
log.Warn("INSTALL FAILED", check.GetGoPath(), err)
}
}
}