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()
|
||||
})
|
||||
|
||||
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 () {
|
||||
|
|
Loading…
Reference in New Issue