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()
})
buildOptions.NewLabel("repo pkg's")
buildOptions.NewButton("rm ~/go/pkg/", func () {
log.Warn("delete every repo here but skip dirty ones")
cmds.Set("rm -rf ~/go/pkg/")
buildOptions.NewLabel("get autotypist")
buildOptions.NewButton("go get", func () {
var newCmds [][]string
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 () {