diff options
| author | Jeff Carr <[email protected]> | 2024-01-18 14:46:20 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-18 14:46:20 -0600 |
| commit | cbafaa3c662203f9e0c42a0dcffc0057a297d1fb (patch) | |
| tree | 966ff3883ba48647f662af4904b1c8e790312b69 /globalBuildOptions.go | |
| parent | 209074a2448b17dfbd6d92057e4410bc4309830d (diff) | |
testing
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'globalBuildOptions.go')
| -rw-r--r-- | globalBuildOptions.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/globalBuildOptions.go b/globalBuildOptions.go index 1e64b28..6d4f179 100644 --- a/globalBuildOptions.go +++ b/globalBuildOptions.go @@ -9,6 +9,7 @@ import ( "go.wit.com/gui" "go.wit.com/lib/gadgets" + "go.wit.com/lib/gui/repostatus" ) func doesExist(path string) bool { @@ -27,12 +28,11 @@ func quickCmd(fullpath string, cmd []string) bool { var output string log.Warn("RUN:", fullpath, cmd) - cmd = []string{"mkdir", "-p", "go.wit.com/apps/"} + err, b, output = repostatus.RunCmd(fullpath, cmd) if err != nil { - err, b, output = RunCmdNew(fullpath, cmd) log.Error(err) return false - } else if ! b { + } else if !b { log.Warn("b =", b) log.Warn("output =", string(output)) return true @@ -100,13 +100,14 @@ func globalBuildOptions(box *gui.Node) { quickCmd(fullpath, []string{"pwd"}) quickCmd(fullpath, []string{"ls", "-l"}) - quickCmd(fullpath, []string{"go", "status"}) // TODO: process this? + quickCmd(fullpath, []string{"git", "status"}) // TODO: process this? quickCmd(fullpath, []string{"rm", "go.mod", "go.sum"}) quickCmd(fullpath, []string{"go", "mod", "init"}) log.Sleep(.1) // don't hammer google's golang versioning system quickCmd(fullpath, []string{"go", "mod", "tidy"}) - log.Sleep(.2) // don't hammer google's golang versioning system + log.Sleep(.2) // don't hammer google's golang versioning system + quickCmd(fullpath, []string{"git", "status"}) // TODO: process this? } // re-enable the button me.rerunGoMod.SetText("re-run go mod & go tidy") |
