diff options
| author | Jeff Carr <[email protected]> | 2024-01-23 11:22:33 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-23 11:22:33 -0600 |
| commit | c408a7cca557f8e8933484cff20934564ec70d17 (patch) | |
| tree | c6d02efe74f4dbe2b080189bf6d9ba44f1eefdf0 /globalTestingOptions.go | |
| parent | b4f1bf383600dd96491b13deb13fbed9e6be4cad (diff) | |
working towards global branch settings
repostatus improvements
common branch handling
scan all repos
code cleanups
check dirty before global delete
go mod using a quieter gui
smarter scripting
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'globalTestingOptions.go')
| -rw-r--r-- | globalTestingOptions.go | 36 |
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() } |
