gofmt autofix paths
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
a2c47263e3
commit
8a80991bd5
|
@ -8,7 +8,7 @@ import (
|
|||
"go.wit.com/log"
|
||||
|
||||
"go.wit.com/gui/gui"
|
||||
"go.wit.com/gui/gadgets"
|
||||
"go.wit.com/lib/gadgets"
|
||||
)
|
||||
|
||||
func doesExist(path string) bool {
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"go.wit.com/log"
|
||||
"go.wit.com/gui/gui"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
|
||||
func globalResetOptions(box *gui.Node) {
|
||||
group2 := box.NewGroup("Global Destructive Options")
|
||||
buildOptions := group2.NewGrid("buildOptions", 2, 1)
|
||||
|
|
21
main.go
21
main.go
|
@ -2,14 +2,14 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"os/user"
|
||||
"embed"
|
||||
"os/user"
|
||||
|
||||
"go.wit.com/log"
|
||||
|
||||
"go.wit.com/gui/gui"
|
||||
"go.wit.com/gui/gadgets"
|
||||
"go.wit.com/gui/lib/repostatus"
|
||||
"go.wit.com/lib/gadgets"
|
||||
"go.wit.com/lib/gui/repostatus"
|
||||
)
|
||||
|
||||
//go:embed resources/*
|
||||
|
@ -97,6 +97,8 @@ func repoworld() {
|
|||
reposwin.Make()
|
||||
|
||||
reposbox = reposwin.Box().NewBox("bw vbox", false)
|
||||
reposwin.Draw()
|
||||
|
||||
reposgroup = reposbox.NewGroup("go repositories (read from ~/.config/myrepolist)")
|
||||
reposgrid = reposgroup.NewGrid("test", 11, 1)
|
||||
|
||||
|
@ -116,11 +118,16 @@ func repoworld() {
|
|||
for _, line := range repos {
|
||||
log.Warn("repo =", line)
|
||||
path, mbranch, dbranch, ubranch := splitLine(line)
|
||||
if mbranch == "" { mbranch = "master" }
|
||||
if dbranch == "" { dbranch = "devel" }
|
||||
if mbranch == "" {
|
||||
mbranch = "master"
|
||||
}
|
||||
if dbranch == "" {
|
||||
dbranch = "devel"
|
||||
}
|
||||
usr, _ := user.Current()
|
||||
if ubranch == "" { ubranch = usr.Username }
|
||||
if ubranch == "" {
|
||||
ubranch = usr.Username
|
||||
}
|
||||
addRepo(reposgrid, path, mbranch, dbranch, ubranch)
|
||||
}
|
||||
reposwin.Draw()
|
||||
}
|
||||
|
|
2
scan.go
2
scan.go
|
@ -4,7 +4,7 @@ package main
|
|||
import (
|
||||
"go.wit.com/log"
|
||||
|
||||
"go.wit.com/gui/lib/repostatus"
|
||||
"go.wit.com/lib/gui/repostatus"
|
||||
)
|
||||
|
||||
func (r *repo) newScan() bool {
|
||||
|
|
|
@ -3,8 +3,8 @@ package main
|
|||
|
||||
import (
|
||||
"go.wit.com/gui/gui"
|
||||
"go.wit.com/gui/gadgets"
|
||||
"go.wit.com/gui/lib/repostatus"
|
||||
"go.wit.com/lib/gadgets"
|
||||
"go.wit.com/lib/gui/repostatus"
|
||||
)
|
||||
|
||||
// the main window nodes
|
||||
|
|
Loading…
Reference in New Issue