go-gui-toolkits/main.go

31 lines
569 B
Go
Raw Normal View History

2024-02-12 07:47:00 -06:00
package main
2024-12-14 22:15:13 -06:00
import (
"go.wit.com/lib/protobuf/forgepb"
2024-02-12 07:47:00 -06:00
"go.wit.com/log"
)
// go will sit here until the window exits
func main() {
2024-12-14 22:15:13 -06:00
forge := forgepb.Init()
all := forge.Repos.SortByGoPath()
for all.Scan() {
check := all.Next()
2024-02-12 07:47:00 -06:00
2024-12-14 22:15:13 -06:00
repotype := check.RepoType()
if repotype != "plugin" {
continue
}
2024-02-12 07:47:00 -06:00
2024-12-14 22:15:13 -06:00
if forge.Config.IsReadOnly(check.GoPath) {
// ignore read only stuff
continue
}
2024-02-12 07:47:00 -06:00
2024-12-14 22:15:13 -06:00
log.Info("STARTING 'make install' in", check.GoPath)
if err := forge.Install(check, nil); err != nil {
log.Warn("INSTALL FAILED", check.GoPath, err)
}
}
2024-02-12 07:47:00 -06:00
}