remove references to me
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
22a2a8e9df
commit
69f56d1ef0
|
@ -3,6 +3,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
"os/user"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
|
@ -66,8 +67,9 @@ func globalBuildOptions(box *gui.Node) {
|
||||||
me.develBranch = gadgets.NewBasicCombobox(grid, "default devel branch")
|
me.develBranch = gadgets.NewBasicCombobox(grid, "default devel branch")
|
||||||
me.develBranch.AddText("devel")
|
me.develBranch.AddText("devel")
|
||||||
|
|
||||||
|
usr, _ := user.Current()
|
||||||
me.userBranch = gadgets.NewBasicCombobox(grid, "default user branch")
|
me.userBranch = gadgets.NewBasicCombobox(grid, "default user branch")
|
||||||
me.userBranch.AddText("jcarr")
|
me.userBranch.AddText(usr.Username)
|
||||||
|
|
||||||
grid.NewLabel("<nil>")
|
grid.NewLabel("<nil>")
|
||||||
grid.NewButton("set working branches", func() {
|
grid.NewButton("set working branches", func() {
|
||||||
|
@ -89,12 +91,10 @@ func globalBuildOptions(box *gui.Node) {
|
||||||
*/
|
*/
|
||||||
})
|
})
|
||||||
newBranch = grid.NewCombobox()
|
newBranch = grid.NewCombobox()
|
||||||
newBranch.AddText("guimaster")
|
|
||||||
newBranch.AddText("master")
|
newBranch.AddText("master")
|
||||||
newBranch.AddText("main")
|
newBranch.AddText("devel")
|
||||||
newBranch.AddText("guidevel")
|
newBranch.AddText(usr.Username)
|
||||||
newBranch.AddText("jcarr")
|
newBranch.SetText(usr.Username)
|
||||||
newBranch.SetText("jcarr")
|
|
||||||
|
|
||||||
me.autoWorkingPwd = gadgets.NewOneLiner(grid, "working directory (pwd)")
|
me.autoWorkingPwd = gadgets.NewOneLiner(grid, "working directory (pwd)")
|
||||||
me.userHomePwd = gadgets.NewOneLiner(grid, "user home")
|
me.userHomePwd = gadgets.NewOneLiner(grid, "user home")
|
||||||
|
@ -116,6 +116,7 @@ func globalBuildOptions(box *gui.Node) {
|
||||||
me.autoDryRun = group2.NewCheckbox("autotypist --dry-run")
|
me.autoDryRun = group2.NewCheckbox("autotypist --dry-run")
|
||||||
me.autoDryRun.SetChecked(true)
|
me.autoDryRun.SetChecked(true)
|
||||||
|
|
||||||
|
/*
|
||||||
group2.NewButton("parse .git/config ScanGitConfig()", func() {
|
group2.NewButton("parse .git/config ScanGitConfig()", func() {
|
||||||
repostatus.ScanGitConfig()
|
repostatus.ScanGitConfig()
|
||||||
})
|
})
|
||||||
|
@ -128,14 +129,14 @@ func globalBuildOptions(box *gui.Node) {
|
||||||
me.autoWorkingPwd.SetValue("~/go/src")
|
me.autoWorkingPwd.SetValue("~/go/src")
|
||||||
log.Warn("scanning allrepos")
|
log.Warn("scanning allrepos")
|
||||||
for path, _ := range me.allrepos {
|
for path, _ := range me.allrepos {
|
||||||
fullpath := "/home/jcarr/go/src/" + path
|
fullpath := me.goSrcPwd.String() + path
|
||||||
quickCmd(fullpath, []string{"git", "status"})
|
quickCmd(fullpath, []string{"git", "status"})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
me.rerunGoMod = group2.NewButton("remove go.mod & go.sum", func() {
|
me.rerunGoMod = group2.NewButton("remove go.mod & go.sum", func() {
|
||||||
for path, _ := range me.allrepos {
|
for path, _ := range me.allrepos {
|
||||||
fullpath := "/home/jcarr/go/src/" + path
|
fullpath := me.goSrcPwd.String() + path
|
||||||
if quickCmd(fullpath, []string{"rm", "-f", "go.mod", "go.sum"}) {
|
if quickCmd(fullpath, []string{"rm", "-f", "go.mod", "go.sum"}) {
|
||||||
log.Info("rm go.mod FAILED in repo", fullpath, me.stopOnErrors.Bool())
|
log.Info("rm go.mod FAILED in repo", fullpath, me.stopOnErrors.Bool())
|
||||||
if me.stopOnErrors.Bool() {
|
if me.stopOnErrors.Bool() {
|
||||||
|
@ -148,7 +149,7 @@ func globalBuildOptions(box *gui.Node) {
|
||||||
me.rerunGoMod = group2.NewButton("run go mod & go tidy", func() {
|
me.rerunGoMod = group2.NewButton("run go mod & go tidy", func() {
|
||||||
os.Unsetenv("GO111MODULE")
|
os.Unsetenv("GO111MODULE")
|
||||||
for path, _ := range me.allrepos {
|
for path, _ := range me.allrepos {
|
||||||
fullpath := "/home/jcarr/go/src/" + path
|
fullpath := me.goSrcPwd.String() + path
|
||||||
quickCmd(fullpath, []string{"go", "mod", "init"})
|
quickCmd(fullpath, []string{"go", "mod", "init"})
|
||||||
quickCmd(fullpath, []string{"go", "mod", "tidy"})
|
quickCmd(fullpath, []string{"go", "mod", "tidy"})
|
||||||
}
|
}
|
||||||
|
@ -156,9 +157,10 @@ func globalBuildOptions(box *gui.Node) {
|
||||||
|
|
||||||
me.rerunGoMod = group2.NewButton("git checkout go.mod & go.sum", func() {
|
me.rerunGoMod = group2.NewButton("git checkout go.mod & go.sum", func() {
|
||||||
for path, _ := range me.allrepos {
|
for path, _ := range me.allrepos {
|
||||||
fullpath := "/home/jcarr/go/src/" + path
|
fullpath := me.goSrcPwd.String() + path
|
||||||
quickCmd(fullpath, []string{"git", "checkout", "go.mod"})
|
quickCmd(fullpath, []string{"git", "checkout", "go.mod"})
|
||||||
quickCmd(fullpath, []string{"git", "checkout", "go.sum"})
|
quickCmd(fullpath, []string{"git", "checkout", "go.sum"})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@ import (
|
||||||
"go.wit.com/gui"
|
"go.wit.com/gui"
|
||||||
"go.wit.com/lib/debugger"
|
"go.wit.com/lib/debugger"
|
||||||
"go.wit.com/lib/gui/logsettings"
|
"go.wit.com/lib/gui/logsettings"
|
||||||
"go.wit.com/log"
|
|
||||||
// "go.wit.com/gui/gadgets"
|
// "go.wit.com/gui/gadgets"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -52,54 +51,6 @@ func globalDisplayOptions(box *gui.Node) {
|
||||||
globalDisplaySetRepoState()
|
globalDisplaySetRepoState()
|
||||||
reposwin.Toggle()
|
reposwin.Toggle()
|
||||||
})
|
})
|
||||||
group1.NewButton("Create Release Window", func() {
|
|
||||||
if release.win == nil {
|
|
||||||
log.Info("Creating the Release Window")
|
|
||||||
createReleaseWindow()
|
|
||||||
log.Info("Toggling the Release Window")
|
|
||||||
release.win.Toggle()
|
|
||||||
}
|
|
||||||
log.Info("Toggling the Release Window")
|
|
||||||
release.openrepo.Disable()
|
|
||||||
for _, repo := range me.allrepos {
|
|
||||||
repo.newScan()
|
|
||||||
}
|
|
||||||
reposwin.Toggle()
|
|
||||||
release.win.Toggle()
|
|
||||||
})
|
|
||||||
group1.NewButton("Create Release Window (fullscan)", func() {
|
|
||||||
if release.win == nil {
|
|
||||||
log.Info("Creating the Release Window")
|
|
||||||
createReleaseWindow()
|
|
||||||
for _, repo := range me.allrepos {
|
|
||||||
repo.status.Update()
|
|
||||||
repo.newScan()
|
|
||||||
}
|
|
||||||
globalDisplaySetRepoState()
|
|
||||||
// open the repo window
|
|
||||||
reposwin.Toggle()
|
|
||||||
log.Info("Toggling the Release Window")
|
|
||||||
release.win.Toggle()
|
|
||||||
}
|
|
||||||
log.Info("Toggling the Release Window")
|
|
||||||
release.win.Toggle()
|
|
||||||
release.openrepo.Disable()
|
|
||||||
for _, repo := range me.allrepos {
|
|
||||||
repo.newScan()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
/*
|
|
||||||
group1.NewButton("hide all", func() {
|
|
||||||
for _, repo := range me.allrepos {
|
|
||||||
repo.Hide()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
group1.NewButton("show all", func() {
|
|
||||||
for repo := range me.allrepos {
|
|
||||||
repo.Show()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
*/
|
|
||||||
|
|
||||||
me.autoHideReadOnly = group1.NewCheckbox("Hide read-only repos").SetChecked(true)
|
me.autoHideReadOnly = group1.NewCheckbox("Hide read-only repos").SetChecked(true)
|
||||||
me.autoHideReadOnly.Custom = func() {
|
me.autoHideReadOnly.Custom = func() {
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"path/filepath"
|
||||||
|
|
||||||
"go.wit.com/gui"
|
"go.wit.com/gui"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
@ -24,10 +26,13 @@ func globalResetOptions(box *gui.Node) {
|
||||||
log.Warn("TODO: check things are pushed and check every dir in go/src/")
|
log.Warn("TODO: check things are pushed and check every dir in go/src/")
|
||||||
me.deleteGoSrcPkgB.SetLabel("ARE YOU SURE?")
|
me.deleteGoSrcPkgB.SetLabel("ARE YOU SURE?")
|
||||||
if me.deleteGoSrcPkgB.String() == "ARE YOU SURE?" {
|
if me.deleteGoSrcPkgB.String() == "ARE YOU SURE?" {
|
||||||
fullpath := "/home/jcarr/go/"
|
homeDir := me.userHomePwd.String()
|
||||||
quickCmd(fullpath, []string{"rm", "-rf", "/home/jcarr/go/src/"})
|
fullpath := filepath.Join(homeDir, "go")
|
||||||
quickCmd(fullpath, []string{"chmod", "700", "-R", "/home/jcarr/go/pkg/"})
|
gosrc := filepath.Join(fullpath, "src")
|
||||||
quickCmd(fullpath, []string{"rm", "-rf", "/home/jcarr/go/pkg/"})
|
gopkg := filepath.Join(fullpath, "pkg")
|
||||||
|
quickCmd(fullpath, []string{"rm", "-rf", gosrc})
|
||||||
|
quickCmd(fullpath, []string{"chmod", "700", "-R", gopkg})
|
||||||
|
quickCmd(fullpath, []string{"rm", "-rf", gopkg})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
|
||||||
"go.wit.com/lib/gui/repostatus"
|
"go.wit.com/lib/gui/repostatus"
|
||||||
|
|
||||||
|
@ -19,42 +20,6 @@ func globalTestingOptions(box *gui.Node) {
|
||||||
me.autoRebuildButton.SetLabel("rebuild autotypist")
|
me.autoRebuildButton.SetLabel("rebuild autotypist")
|
||||||
})
|
})
|
||||||
|
|
||||||
/*
|
|
||||||
me.downloadEverythingButton = test1.NewButton("go get go.wit.com", func() {
|
|
||||||
me.downloadEverythingButton.Disable()
|
|
||||||
me.autoWorkingPwd.SetValue("/home/jcarr/go/src")
|
|
||||||
var perfect bool = true
|
|
||||||
repos := myrepolist()
|
|
||||||
for _, line := range repos {
|
|
||||||
log.Verbose("repo =", line)
|
|
||||||
path, _, _, _ := splitLine(line)
|
|
||||||
path = strings.TrimSpace(path)
|
|
||||||
if path == "#" {
|
|
||||||
// skip comment lines
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if doesExist("/home/jcarr/go/src/" + path) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
// attempt to download it
|
|
||||||
quickCmd("/home/jcarr/go/src/go.wit.com", []string{"go", "get", "-v", path})
|
|
||||||
perfect = false
|
|
||||||
}
|
|
||||||
|
|
||||||
if perfect {
|
|
||||||
var notes string
|
|
||||||
notes = "you have already downloaded\neverything on go.wit.com"
|
|
||||||
me.autoWorkingPwd.SetValue(notes)
|
|
||||||
me.downloadEverythingButton.Disable()
|
|
||||||
return
|
|
||||||
} else {
|
|
||||||
var notes string
|
|
||||||
notes = "download everything failed"
|
|
||||||
me.autoWorkingPwd.SetValue(notes)
|
|
||||||
me.downloadEverythingButton.Enable()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
*/
|
|
||||||
var listallB *gui.Node
|
var listallB *gui.Node
|
||||||
listallB = test1.NewButton("go.wit.com/list", func() {
|
listallB = test1.NewButton("go.wit.com/list", func() {
|
||||||
listallB.Disable()
|
listallB.Disable()
|
||||||
|
@ -72,9 +37,12 @@ func globalTestingOptions(box *gui.Node) {
|
||||||
func attemptAutoRebuild() {
|
func attemptAutoRebuild() {
|
||||||
os.Setenv("GO111MODULE", "off")
|
os.Setenv("GO111MODULE", "off")
|
||||||
|
|
||||||
fullpath := "/home/jcarr/go/"
|
homeDir := me.userHomePwd.String()
|
||||||
quickCmd(fullpath, []string{"mkdir", "-p", "/home/jcarr/go/src/go.wit.com/apps/"})
|
fullpath := filepath.Join(homeDir, "go")
|
||||||
fullpath = "/home/jcarr/go/src/go.wit.com/apps/"
|
// fullpath := "/home/jcarr/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/apps/autotypist"})
|
||||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/debian"})
|
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/debian"})
|
||||||
|
@ -83,19 +51,19 @@ func attemptAutoRebuild() {
|
||||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/gocui"})
|
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/gocui"})
|
||||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/andlabs"})
|
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/andlabs"})
|
||||||
|
|
||||||
fullpath = "/home/jcarr/go/src/go.wit.com/toolkits/nocui/"
|
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/nocui/")
|
||||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../nocui.so"})
|
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../nocui.so"})
|
||||||
|
|
||||||
fullpath = "/home/jcarr/go/src/go.wit.com/toolkits/gocui/"
|
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/gocui/")
|
||||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../gocui.so"})
|
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../gocui.so"})
|
||||||
|
|
||||||
fullpath = "/home/jcarr/go/src/go.wit.com/toolkits/andlabs/"
|
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/andlabs/")
|
||||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../andlabs.so"})
|
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../andlabs.so"})
|
||||||
|
|
||||||
fullpath = "/home/jcarr/go/src/go.wit.com/apps/autotypist"
|
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/apps/autotypist")
|
||||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x"})
|
quickCmd(fullpath, []string{"go", "build", "-v", "-x"})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue