From ce18af897a6aac7ce9d19af9520ce531cfad31df Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 10 Feb 2025 23:42:21 -0600 Subject: start thinking about making a Table() --- doGui.go | 28 ++++++++++++++++++++-------- find.go | 1 + 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/doGui.go b/doGui.go index 504a92e..b5fd9de 100644 --- a/doGui.go +++ b/doGui.go @@ -18,14 +18,12 @@ import ( ) func debug() { - log.Info("cmd line --debugger == true") - func() { - for { - log.Sleep(30) - log.Info("cmd line --debugger == true") - // debugger.DebugWindow() - } - }() + // log.Info("cmd line --debugger == true") + for { + time.Sleep(90 * time.Second) + log.Info("TODO: add a forge scan here. repo count =", me.forge.Repos.Len()) + // debugger.DebugWindow() + } } func doGui() { @@ -126,6 +124,20 @@ func drawWindow(win *gadgets.BasicWindow) { 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.AddText("master") me.newBranch.AddText("devel") diff --git a/find.go b/find.go index 0c1c8e8..cf89e55 100644 --- a/find.go +++ b/find.go @@ -57,6 +57,7 @@ func findPrivate() { all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() + if me.forge.Config.IsPrivate(repo.GetGoPath()) { me.found.AppendByGoPath(repo) } -- cgit v1.2.3