summaryrefslogtreecommitdiff
path: root/globalTestingOptions.go
diff options
context:
space:
mode:
Diffstat (limited to 'globalTestingOptions.go')
-rw-r--r--globalTestingOptions.go36
1 files changed, 16 insertions, 20 deletions
diff --git a/globalTestingOptions.go b/globalTestingOptions.go
index a920b8b..cd183bc 100644
--- a/globalTestingOptions.go
+++ b/globalTestingOptions.go
@@ -21,15 +21,13 @@ func globalTestingOptions(box *gui.Node) {
me.autoRebuildButton.SetLabel("rebuild autotypist")
})
- var everything *gui.Node
- everything = test1.NewButton("go get everything on go.wit.com", func() {
- quickCmdDoNotRun = false
- quickCmds = [][]string{}
- quickCmdLastPath = "/home/jcarr/go/src"
+ 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.Warn("repo =", line)
+ log.Verbose("repo =", line)
path, _, _, _ := splitLine(line)
path = strings.TrimSpace(path)
if path == "#" {
@@ -45,19 +43,17 @@ func globalTestingOptions(box *gui.Node) {
}
if perfect {
- var notes [][]string
- notes = append(notes, []string{"you have already downloaded"})
- notes = append(notes, []string{"everything on go.wit.com"})
- me.script = notes
- setGitCommands()
- doit.Disable()
- everything.Disable()
+ 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()
}
-
- me.script = quickCmds
- doit.Enable()
- setGitCommands()
})
test1.NewButton("build all apps", func() {
listWindow()
@@ -65,11 +61,13 @@ func globalTestingOptions(box *gui.Node) {
test1.NewButton("repostatus.ListAll()", func() {
repostatus.ListAll()
})
+ test1.NewButton("repostatus.ScanGoSrc()", func() {
+ repostatus.ScanGoSrc()
+ })
}
func attemptAutoRebuild() {
os.Setenv("GO111MODULE", "off")
- quickCmdDoNotRun = false
fullpath := "/home/jcarr/go/"
quickCmd(fullpath, []string{"mkdir", "-p", "/home/jcarr/go/src/go.wit.com/apps/"})
@@ -97,6 +95,4 @@ func attemptAutoRebuild() {
fullpath = "/home/jcarr/go/src/go.wit.com/apps/autotypist"
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
quickCmd(fullpath, []string{"go", "build", "-v", "-x"})
- me.script = quickCmds
- setGitCommands()
}