summaryrefslogtreecommitdiff
path: root/globalBuildOptions.go
diff options
context:
space:
mode:
Diffstat (limited to 'globalBuildOptions.go')
-rw-r--r--globalBuildOptions.go11
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")