start thinking about making a Table()

This commit is contained in:
Jeff Carr 2025-02-10 23:42:21 -06:00
parent 493b2ec72d
commit ce18af897a
2 changed files with 21 additions and 8 deletions

View File

@ -18,14 +18,12 @@ import (
) )
func debug() { func debug() {
log.Info("cmd line --debugger == true") // log.Info("cmd line --debugger == true")
func() { for {
for { time.Sleep(90 * time.Second)
log.Sleep(30) log.Info("TODO: add a forge scan here. repo count =", me.forge.Repos.Len())
log.Info("cmd line --debugger == true") // debugger.DebugWindow()
// debugger.DebugWindow() }
}
}()
} }
func doGui() { func doGui() {
@ -126,6 +124,20 @@ func drawWindow(win *gadgets.BasicWindow) {
log.Info("checkout was ok") log.Info("checkout was ok")
} }
}) })
/*
me.setBranchB = grid.NewButton("git repos", func() {
t := me.forge.Repos.NewTable()
fp := t.AddFullPath("Full Path")
fp.Custom( func() {
log.Info("this is the full path")
})
t.AddMasterVersion("master version")
t.Show()
})
*/
me.newBranch = grid.NewDropdown() me.newBranch = grid.NewDropdown()
me.newBranch.AddText("master") me.newBranch.AddText("master")
me.newBranch.AddText("devel") me.newBranch.AddText("devel")

View File

@ -57,6 +57,7 @@ func findPrivate() {
all := me.forge.Repos.SortByFullPath() all := me.forge.Repos.SortByFullPath()
for all.Scan() { for all.Scan() {
repo := all.Next() repo := all.Next()
if me.forge.Config.IsPrivate(repo.GetGoPath()) { if me.forge.Config.IsPrivate(repo.GetGoPath()) {
me.found.AppendByGoPath(repo) me.found.AppendByGoPath(repo)
} }