summaryrefslogtreecommitdiff
path: root/draw.go
diff options
context:
space:
mode:
Diffstat (limited to 'draw.go')
-rw-r--r--draw.go76
1 files changed, 38 insertions, 38 deletions
diff --git a/draw.go b/draw.go
index b8565ef..96c4aa3 100644
--- a/draw.go
+++ b/draw.go
@@ -54,21 +54,21 @@ func (rs *RepoStatus) drawGitBranches() {
})
/*
- newgrid.NewButton("show .git/config", func() {
- if rs.gitConfig == nil {
- log.Log(WARN, "Nonexistant or damaged .git/config", rs.String())
- return
- }
- log.Log(WARN, ".git/config:", rs.realPath.String())
+ newgrid.NewButton("show .git/config", func() {
+ if rs.gitConfig == nil {
+ log.Log(WARN, "Nonexistant or damaged .git/config", rs.String())
+ return
+ }
+ log.Log(WARN, ".git/config:", rs.realPath.String())
- // The info:
- for name, remote := range rs.gitConfig.remotes {
- log.Log(WARN, " ", name, "url:", remote.url)
- }
- for name, branch := range rs.gitConfig.branches {
- log.Log(WARN, " ", name, "remote:", branch.remote, "merge", branch.merge)
- }
- })
+ // The info:
+ for name, remote := range rs.gitConfig.remotes {
+ log.Log(WARN, " ", name, "url:", remote.url)
+ }
+ for name, branch := range rs.gitConfig.branches {
+ log.Log(WARN, " ", name, "remote:", branch.remote, "merge", branch.merge)
+ }
+ })
*/
newgrid.NewButton("CheckDirty()", func() {
@@ -80,31 +80,31 @@ func (rs *RepoStatus) drawGitBranches() {
})
/*
- newgrid.NewButton("CheckSafeGoSumRemake()", func() {
- if ok, bad := rs.CheckSafeGoSumRemake(); ok {
- log.Log(WARN, "CheckSafeGoSumRemake() is safe to redo")
- } else {
- log.Log(WARN, "CheckSafeGoSumRemake() is not safe. problems:", bad)
- }
- })
+ newgrid.NewButton("CheckSafeGoSumRemake()", func() {
+ if ok, bad := rs.CheckSafeGoSumRemake(); ok {
+ log.Log(WARN, "CheckSafeGoSumRemake() is safe to redo")
+ } else {
+ log.Log(WARN, "CheckSafeGoSumRemake() is not safe. problems:", bad)
+ }
+ })
- newgrid.NewButton("CheckGoSum()", func() {
- if ok, missing := rs.CheckGoSum(); ok {
- log.Log(WARN, "CheckGoSum() is ok")
- } else {
- log.Log(WARN, "CheckGoSum() is not ok. missing:", missing)
- }
- })
- newgrid.NewButton("CheckPrimativeGoMod()", func() {
- if rs.CheckPrimativeGoMod() {
- log.Log(WARN, "is primative")
- } else {
- log.Log(WARN, "is not primative")
- }
- })
- newgrid.NewButton("MakeRedomod()", func() {
- rs.MakeRedomod()
- })
+ newgrid.NewButton("CheckGoSum()", func() {
+ if ok, missing := rs.CheckGoSum(); ok {
+ log.Log(WARN, "CheckGoSum() is ok")
+ } else {
+ log.Log(WARN, "CheckGoSum() is not ok. missing:", missing)
+ }
+ })
+ newgrid.NewButton("CheckPrimativeGoMod()", func() {
+ if rs.CheckPrimativeGoMod() {
+ log.Log(WARN, "is primative")
+ } else {
+ log.Log(WARN, "is not primative")
+ }
+ })
+ newgrid.NewButton("MakeRedomod()", func() {
+ rs.MakeRedomod()
+ })
*/
}