summaryrefslogtreecommitdiff
path: root/globalTestingOptions.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-30 23:38:46 -0600
committerJeff Carr <[email protected]>2024-01-30 23:38:46 -0600
commitd18a8018cb95cd3218226639e6afa5b4e3f51af0 (patch)
tree5a86f9640ccafcec62aaf11d8fec2001792b71c4 /globalTestingOptions.go
parent3dcb1683482c5d1dfa8bd08c6e42c98939114198 (diff)
general cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'globalTestingOptions.go')
-rw-r--r--globalTestingOptions.go68
1 files changed, 0 insertions, 68 deletions
diff --git a/globalTestingOptions.go b/globalTestingOptions.go
deleted file mode 100644
index 258ff23..0000000
--- a/globalTestingOptions.go
+++ /dev/null
@@ -1,68 +0,0 @@
-package main
-
-import (
- "os"
- "path/filepath"
-
- "go.wit.com/lib/gui/repostatus"
-
- "go.wit.com/gui"
-)
-
-// things being testing
-func globalTestingOptions(box *gui.Node) {
- test1 := box.NewGroup("testing build")
- me.autoRebuildButton = test1.NewButton("rebuild autotypist", func() {
- me.autoRebuildButton.Disable()
- me.autoRebuildButton.SetLabel("running....")
- attemptAutoRebuild()
- me.autoRebuildButton.Enable()
- me.autoRebuildButton.SetLabel("rebuild autotypist")
- })
-
- var listallB *gui.Node
- listallB = test1.NewButton("go.wit.com/list", func() {
- listallB.Disable()
- listWindow()
- listallB.Enable()
- })
- test1.NewButton("repostatus.ListAll()", func() {
- repostatus.ListAll()
- })
- test1.NewButton("repostatus.ScanGoSrc()", func() {
- repostatus.ScanGoSrc()
- })
-}
-
-func attemptAutoRebuild() {
- os.Setenv("GO111MODULE", "off")
-
- homeDir := me.userHomePwd.String()
- fullpath := filepath.Join(homeDir, "go")
- quickCmd(fullpath, []string{"mkdir", "-p", "src/go.wit.com/apps/"})
-
- fullpath = filepath.Join(homeDir, "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 = filepath.Join(homeDir, "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 = filepath.Join(homeDir, "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 = filepath.Join(homeDir, "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 = filepath.Join(homeDir, "go/src/go.wit.com/apps/autotypist")
- quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
- quickCmd(fullpath, []string{"go", "build", "-v", "-x"})
-}