try to restore a working env

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-15 08:21:23 -06:00
parent e240e4149f
commit 248c3f4cdb
1 changed files with 9 additions and 4 deletions

13
main.go
View File

@ -175,10 +175,15 @@ func repoworld() {
setGitCommands() setGitCommands()
}) })
buildOptions.NewLabel("repo pkg's") buildOptions.NewLabel("get autotypist")
buildOptions.NewButton("rm ~/go/pkg/", func () { buildOptions.NewButton("go get", func () {
log.Warn("delete every repo here but skip dirty ones") var newCmds [][]string
cmds.Set("rm -rf ~/go/pkg/") newCmds = append(newCmds, []string{"mkdir", "-p", "go/src/go.wit.com/myrepos"})
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/myrepos"})
newCmds = append(newCmds, []string{"go", "git", "-v", "-u"})
script = newCmds
setGitCommands()
doit.Enable()
}) })
buildOptions.NewButton("status.Update() all", func () { buildOptions.NewButton("status.Update() all", func () {