diff --git a/main.go b/main.go index 6a12e11..4d8de8e 100644 --- a/main.go +++ b/main.go @@ -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 () {