summaryrefslogtreecommitdiff
path: root/globalTestingOptions.go
diff options
context:
space:
mode:
Diffstat (limited to 'globalTestingOptions.go')
-rw-r--r--globalTestingOptions.go73
1 files changed, 38 insertions, 35 deletions
diff --git a/globalTestingOptions.go b/globalTestingOptions.go
index 3db2727..1631db1 100644
--- a/globalTestingOptions.go
+++ b/globalTestingOptions.go
@@ -2,10 +2,8 @@ package main
import (
"os"
- "strings"
"go.wit.com/lib/gui/repostatus"
- "go.wit.com/log"
"go.wit.com/gui"
)
@@ -21,42 +19,47 @@ func globalTestingOptions(box *gui.Node) {
me.autoRebuildButton.SetLabel("rebuild autotypist")
})
- me.downloadEverythingButton = test1.NewButton("go get go.wit.com", func() {
- me.downloadEverythingButton.Disable()
- me.autoWorkingPwd.SetValue("/home/jcarr/go/src")
- var perfect bool = true
- repos := myrepolist()
- for _, line := range repos {
- log.Verbose("repo =", line)
- path, _, _, _ := splitLine(line)
- path = strings.TrimSpace(path)
- if path == "#" {
- // skip comment lines
- continue
- }
- if doesExist("/home/jcarr/go/src/" + path) {
- continue
+ /*
+ me.downloadEverythingButton = test1.NewButton("go get go.wit.com", func() {
+ me.downloadEverythingButton.Disable()
+ me.autoWorkingPwd.SetValue("/home/jcarr/go/src")
+ var perfect bool = true
+ repos := myrepolist()
+ for _, line := range repos {
+ log.Verbose("repo =", line)
+ path, _, _, _ := splitLine(line)
+ path = strings.TrimSpace(path)
+ if path == "#" {
+ // skip comment lines
+ continue
+ }
+ if doesExist("/home/jcarr/go/src/" + path) {
+ continue
+ }
+ // attempt to download it
+ quickCmd("/home/jcarr/go/src/go.wit.com", []string{"go", "get", "-v", path})
+ perfect = false
}
- // attempt to download it
- quickCmd("/home/jcarr/go/src/go.wit.com", []string{"go", "get", "-v", path})
- perfect = false
- }
- if perfect {
- var notes string
- notes = "you have already downloaded\neverything on go.wit.com"
- me.autoWorkingPwd.SetValue(notes)
- me.downloadEverythingButton.Disable()
- return
- } else {
- var notes string
- notes = "download everything failed"
- me.autoWorkingPwd.SetValue(notes)
- me.downloadEverythingButton.Enable()
- }
- })
- test1.NewButton("go.wit.com/list", func() {
+ if perfect {
+ var notes string
+ notes = "you have already downloaded\neverything on go.wit.com"
+ me.autoWorkingPwd.SetValue(notes)
+ me.downloadEverythingButton.Disable()
+ return
+ } else {
+ var notes string
+ notes = "download everything failed"
+ me.autoWorkingPwd.SetValue(notes)
+ me.downloadEverythingButton.Enable()
+ }
+ })
+ */
+ var listallB *gui.Node
+ listallB = test1.NewButton("go.wit.com/list", func() {
+ listallB.Disable()
listWindow()
+ listallB.Enable()
})
test1.NewButton("repostatus.ListAll()", func() {
repostatus.ListAll()