try to restore a working env
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
e240e4149f
commit
248c3f4cdb
13
main.go
13
main.go
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in New Issue