diff options
| author | Jeff Carr <[email protected]> | 2024-01-15 13:53:44 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-15 13:53:44 -0600 |
| commit | 8ddc35e1985cdb2411eb25faead86d631421a6ab (patch) | |
| tree | 3181966f487e021db81e9f151610f32692ff83e6 /main.go | |
| parent | 77c1b9258f5de5ec0e8a5d3b69c1f3cf7143c154 (diff) | |
closer to automatic 'go get' myself
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -178,8 +178,8 @@ func repoworld() { buildOptions.NewLabel("get autotypist") buildOptions.NewButton("go get", func () { var newCmds [][]string - newCmds = append(newCmds, []string{"mkdir", "-p", "go/src/go.wit.com/apps"}) - newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/myrepos"}) + newCmds = append(newCmds, []string{"mkdir", "-p", "~/go/src/go.wit.com/apps"}) + newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/"}) newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "go.wit.com/apps/myrepos"}) newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/myrepos"}) newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "."}) @@ -210,10 +210,11 @@ func repoworld() { buildOptions.NewLabel("--dry-run") dryrun = buildOptions.NewButton("show commands", func () { - if dryRunCommands() { + if goMake("--dry-run") { log.Warn("EVERYTHING MIGHT HAVE WORKED") } else { - log.Warn("EVERYTHING DID NOT WORK") + log.Warn("EVERYTHING WILL NOT WORK") + dryrun.Disable() } }) @@ -221,7 +222,8 @@ func repoworld() { doit = buildOptions.NewButton("run commands", func () { doit.Disable() log.Warn("should run the commands here") - if runCommands() { + // true here means dryrun == true. it's confusingly named + if goMake("--doit") { log.Warn("EVERYTHING WORKED") } else { log.Warn("EVERYTHING DID NOT WORK") |
