working on a repostatus window map[]
almost perfect autobuild enable auto run used this app to update all the other guis Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
2524852611
commit
b4f1bf3836
|
@ -4,6 +4,7 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
"go.wit.com/lib/gui/repostatus"
|
||||
"go.wit.com/log"
|
||||
|
||||
"go.wit.com/gui"
|
||||
|
@ -12,29 +13,12 @@ import (
|
|||
// things being testing
|
||||
func globalTestingOptions(box *gui.Node) {
|
||||
test1 := box.NewGroup("testing build")
|
||||
test1.NewButton("rebuild autotypist", func() {
|
||||
os.Setenv("GO111MODULE", "off")
|
||||
quickCmdDoNotRun = true
|
||||
quickCmdLastPath = "~/go/src"
|
||||
quickCmds = [][]string{}
|
||||
log.Warn("scanning allrepos")
|
||||
fullpath := "/home/jcarr/"
|
||||
quickCmd(fullpath, []string{"mkdir", "-p", "/home/jcarr/go/src/go.wit.com/apps/"})
|
||||
|
||||
fullpath = "/home/jcarr/go/src/go.wit.com/apps/"
|
||||
quickCmd(fullpath, []string{"go", "get", "go.wit.com/apps/autotypist"})
|
||||
fullpath = "/home/jcarr/go/src/go.wit.com/apps/autotypist"
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/debian"})
|
||||
|
||||
fullpath = "/home/jcarr/go/src/go.wit.com/toolkits/debian"
|
||||
quickCmd(fullpath, []string{"make", "download"})
|
||||
quickCmd(fullpath, []string{"make"})
|
||||
|
||||
fullpath = "/home/jcarr/go/src/go.wit.com/apps/autotypist"
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x"})
|
||||
me.script = quickCmds
|
||||
setGitCommands()
|
||||
me.autoRebuildButton = test1.NewButton("rebuild autotypist", func() {
|
||||
me.autoRebuildButton.Disable()
|
||||
me.autoRebuildButton.SetLabel("running....")
|
||||
attemptAutoRebuild()
|
||||
me.autoRebuildButton.Enable()
|
||||
me.autoRebuildButton.SetLabel("rebuild autotypist")
|
||||
})
|
||||
|
||||
var everything *gui.Node
|
||||
|
@ -78,4 +62,41 @@ func globalTestingOptions(box *gui.Node) {
|
|||
test1.NewButton("build all apps", func() {
|
||||
listWindow()
|
||||
})
|
||||
test1.NewButton("repostatus.ListAll()", func() {
|
||||
repostatus.ListAll()
|
||||
})
|
||||
}
|
||||
|
||||
func attemptAutoRebuild() {
|
||||
os.Setenv("GO111MODULE", "off")
|
||||
quickCmdDoNotRun = false
|
||||
|
||||
fullpath := "/home/jcarr/go/"
|
||||
quickCmd(fullpath, []string{"mkdir", "-p", "/home/jcarr/go/src/go.wit.com/apps/"})
|
||||
fullpath = "/home/jcarr/go/src/go.wit.com/apps/"
|
||||
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/apps/autotypist"})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/debian"})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/tree"})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/nocui"})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/gocui"})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/andlabs"})
|
||||
|
||||
fullpath = "/home/jcarr/go/src/go.wit.com/toolkits/nocui/"
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../nocui.so"})
|
||||
|
||||
fullpath = "/home/jcarr/go/src/go.wit.com/toolkits/gocui/"
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../gocui.so"})
|
||||
|
||||
fullpath = "/home/jcarr/go/src/go.wit.com/toolkits/andlabs/"
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../andlabs.so"})
|
||||
|
||||
fullpath = "/home/jcarr/go/src/go.wit.com/apps/autotypist"
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x"})
|
||||
me.script = quickCmds
|
||||
setGitCommands()
|
||||
}
|
||||
|
|
4
go.mod
4
go.mod
|
@ -5,9 +5,9 @@ go 1.21.4
|
|||
require (
|
||||
go.wit.com/gui v0.12.19
|
||||
go.wit.com/lib/debugger v0.12.7
|
||||
go.wit.com/lib/gadgets v0.12.14
|
||||
go.wit.com/lib/gadgets v0.12.15
|
||||
go.wit.com/lib/gui/logsettings v0.10.2
|
||||
go.wit.com/lib/gui/repostatus v0.12.18
|
||||
go.wit.com/lib/gui/repostatus v0.12.20
|
||||
go.wit.com/log v0.5.6
|
||||
)
|
||||
|
||||
|
|
10
go.sum
10
go.sum
|
@ -8,12 +8,14 @@ go.wit.com/gui v0.12.19 h1:OEnsnZnec7Q2jZVjwl413V0wuVAAB4r2mGTY0IouBuw=
|
|||
go.wit.com/gui v0.12.19/go.mod h1:v2VgnOL3dlZ13KclYeedZ1cd20nQdvwjyJTNKvFX3DA=
|
||||
go.wit.com/lib/debugger v0.12.7 h1:c8ehU7p2asb//K4YgC17XG4o2pPP+IZb9lR2a0nBio8=
|
||||
go.wit.com/lib/debugger v0.12.7/go.mod h1:zcZstsgOcALjCNOiIE+KcKkrIF78ogYjwxmaQlBbmtQ=
|
||||
go.wit.com/lib/gadgets v0.12.14 h1:Osh7D8TKJiU5M6tXqERGQwTUt+C5IJ0senkmUAirSek=
|
||||
go.wit.com/lib/gadgets v0.12.14/go.mod h1:Fxc7F8hGskpkWVAsXKhs4ilqUlAnikVXj4yzumtTYa0=
|
||||
go.wit.com/lib/gadgets v0.12.15 h1:C9q6wc45Trh5SrizD8lOXOWoJLGq/ESWwzjCVylZrNY=
|
||||
go.wit.com/lib/gadgets v0.12.15/go.mod h1:Fxc7F8hGskpkWVAsXKhs4ilqUlAnikVXj4yzumtTYa0=
|
||||
go.wit.com/lib/gui/logsettings v0.10.2 h1:xRx0AX1V74kC6CIm+ib6C3ziTcbBjR/Ju3rTLEpQMsw=
|
||||
go.wit.com/lib/gui/logsettings v0.10.2/go.mod h1:v5XUQ6WyNyfScR9oOFhdz8p1wtxCpNWXK3DJ/dbLPVo=
|
||||
go.wit.com/lib/gui/repostatus v0.12.18 h1:oJltc1b0uupZZVQJeiS9j7Ap6Bg96gOrj02MQAlicFc=
|
||||
go.wit.com/lib/gui/repostatus v0.12.18/go.mod h1:u0zWWBB9IjrnV75H1OtVC68/Lb0z0bqxk+E6J+ZQnkU=
|
||||
go.wit.com/lib/gui/repostatus v0.12.19 h1:Udi1g/gdrDLnKWvXfL5WdyJjRkbFYkEMx56iY9CN+BQ=
|
||||
go.wit.com/lib/gui/repostatus v0.12.19/go.mod h1:EO5bI+/cGwHGBQG1S8pDtV58Rmw5HWbW9vZtFLg5Vkw=
|
||||
go.wit.com/lib/gui/repostatus v0.12.20 h1:SPx45W8Yd6RZf0oZueXmMhlZsu3MVL8wdb5mVGovbfA=
|
||||
go.wit.com/lib/gui/repostatus v0.12.20/go.mod h1:EO5bI+/cGwHGBQG1S8pDtV58Rmw5HWbW9vZtFLg5Vkw=
|
||||
go.wit.com/log v0.5.6 h1:rDC3ju95zfEads4f1Zm+QMkqjZ39CsYAT/UmQQs7VP4=
|
||||
go.wit.com/log v0.5.6/go.mod h1:BaJBfHFqcJSJLXGQ9RHi3XVhPgsStxSMZRlaRxW4kAo=
|
||||
go.wit.com/widget v1.1.6 h1:av2miF5vlohMfARA/QGPTPfgW/ADup1c+oeAOKgroPY=
|
||||
|
|
|
@ -42,6 +42,8 @@ type repoType struct {
|
|||
|
||||
// if checked, will stop trying to os.Exec() things after failure
|
||||
stopOnErrors *gui.Node
|
||||
|
||||
autoRebuildButton *gui.Node // button to attempt to autorebuild
|
||||
}
|
||||
|
||||
var cmds *gui.Node
|
||||
|
@ -65,9 +67,9 @@ type repo struct {
|
|||
// masterName *gui.Node // the master branch name
|
||||
masterVersion *gui.Node // the master branch version
|
||||
// develName *gui.Node // the devel branch name
|
||||
develVersion *gui.Node // the devel branch version
|
||||
develVersion *gui.Node // the devel branch version
|
||||
// userName *gui.Node // the jcarr branch name
|
||||
userVersion *gui.Node // the jcarr branch version
|
||||
userVersion *gui.Node // the jcarr branch version
|
||||
|
||||
cButton *gui.Node // commit button
|
||||
pButton *gui.Node // push button
|
||||
|
|
Loading…
Reference in New Issue