summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go22
1 files changed, 20 insertions, 2 deletions
diff --git a/main.go b/main.go
index 511d40c..2e37013 100644
--- a/main.go
+++ b/main.go
@@ -2,6 +2,9 @@
package main
import (
+ "io/ioutil"
+ "strings"
+
"go.wit.com/log"
"go.wit.com/gui/gui"
@@ -54,8 +57,8 @@ func addRepo(grid *gui.Node, path string) *repo {
newRepo.pLabel = grid.NewLabel(path)
newRepo.bLabel = grid.NewLabel("")
newRepo.lastLabel = grid.NewLabel("")
- newRepo.tagsDrop = grid.NewDropdown("tags")
newRepo.vLabel = grid.NewLabel("")
+ newRepo.tagsDrop = grid.NewDropdown("tags")
newRepo.masterVersion = grid.NewLabel("")
newRepo.develVersion = grid.NewLabel("")
@@ -94,7 +97,15 @@ func helloworld() {
grid.NewLabel("commit")
grid.NewLabel("push to")
- addRepo(grid, "go.wit.com/log")
+ content, _ := ioutil.ReadFile("/home/jcarr/.config/myrepolist")
+ out := string(content)
+ out = strings.TrimSpace(out)
+ lines := strings.Split(out, "\n")
+ for _, repo := range lines {
+ log.Warn("repo =", repo)
+ addRepo(grid, repo)
+ }
+ /*
addRepo(grid, "go.wit.com/arg")
addRepo(grid, "go.wit.com/spew")
addRepo(grid, "go.wit.com/shell")
@@ -106,6 +117,13 @@ func helloworld() {
addRepo(grid, "go.wit.com/gui/gadgets")
addRepo(grid, "go.wit.com/gui/digitalocean")
addRepo(grid, "go.wit.com/gui/cloudflare")
+ addRepo(grid, "")
+ addRepo(grid, "go.wit.com/apps/control-panel-vpn")
+ addRepo(grid, "go.wit.com/apps/control-panel-dns")
+ addRepo(grid, "go.wit.com/apps/control-panel-digitalocean")
+ addRepo(grid, "go.wit.com/apps/control-panel-cloudflare")
+ addRepo(grid, "go.wit.com/apps/myrepos")
+ */
box2.NewButton("checkout jcarr (all repos)", func () {
for _, r := range allrepos {