summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go59
1 files changed, 0 insertions, 59 deletions
diff --git a/main.go b/main.go
index 3e8883d..45cc32f 100644
--- a/main.go
+++ b/main.go
@@ -4,14 +4,12 @@ package main
import (
"embed"
"fmt"
- "os/user"
"strings"
"time"
"go.wit.com/log"
"go.wit.com/gui"
- "go.wit.com/lib/gadgets"
"go.wit.com/lib/gui/repostatus"
)
@@ -135,60 +133,3 @@ func autotypistWindow() {
// globalTestingOptions(box)
// globalResetOptions(box)
}
-
-// This creates a window
-func repoworld() {
- reposwin = gadgets.NewBasicWindow(me.myGui, "All git repositories in ~/go/src/")
- reposwin.Make()
-
- reposbox = reposwin.Box().NewBox("bw vbox", false)
- reposwin.Draw()
- reposwin.Custom = func() {
- log.Warn("GOT HERE: main() gadgets.NewBasicWindow() close")
- log.Warn("Should I do something special here?")
- }
-
- reposgroup = reposbox.NewGroup("go repositories (read from ~/.config/myrepolist)")
- reposgrid = reposgroup.NewGrid("test", 9, 1)
-
- reposgrid.NewLabel("") // path goes here
-
- reposgrid.NewLabel("last tag").SetProgName("last tag")
-
- reposgrid.NewLabel("master version")
- reposgrid.NewLabel("devel version")
- reposgrid.NewLabel("user version")
-
- reposgrid.NewLabel("Status")
- reposgrid.NewLabel("go.sum")
-
- reposgrid.NewLabel("Current Version").SetProgName("Current Version")
-
- reposgrid.NewLabel("Show()")
-
- repos := myrepolist()
- for _, line := range repos {
- log.Verbose("repo =", line)
- path, mbranch, dbranch, ubranch := splitLine(line)
- if mbranch == "" {
- mbranch = "master"
- }
- if dbranch == "" {
- dbranch = "devel"
- }
- usr, _ := user.Current()
- if ubranch == "" {
- ubranch = usr.Username
- }
- addRepo(reposgrid, path, mbranch, dbranch, ubranch)
- }
-
- for i, path := range repostatus.ListGitDirectories() {
- // log.Info("addRepo()", i, path)
- tmp := strings.TrimPrefix(path, "/home/jcarr/go/src/")
- log.Info("addRepo()", i, tmp)
- addRepo(reposgrid, tmp, "master", "master", "master")
- }
-
- reposwin.Toggle()
-}