summaryrefslogtreecommitdiff
path: root/windowRepos.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-05 13:32:29 -0600
committerJeff Carr <[email protected]>2025-03-05 13:32:29 -0600
commit52e08e60779d9ba8a68aa7ea7928aeb27ec8d6d0 (patch)
tree9c80551b220b23fcf06b9ecf4e6847b9fcedbc74 /windowRepos.go
parent31d2ac1259ed0f7decc677277f06bf565c828ce9 (diff)
test out buttons in PB tables
Diffstat (limited to 'windowRepos.go')
-rw-r--r--windowRepos.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/windowRepos.go b/windowRepos.go
index 0c9283a..58b2c80 100644
--- a/windowRepos.go
+++ b/windowRepos.go
@@ -106,6 +106,10 @@ func makeReposWin() *gadgets.GenericWindow {
// display the protobuf
t = addWindowPB(insertWin, found)
+ f := func(id int) {
+ log.Info("got to MachinesTable.Custom() id =", id)
+ }
+ t.Custom(f)
log.Info("table has uuid", t.GetUuid())
})
@@ -406,6 +410,11 @@ func addWindowPB(win *gadgets.GenericWindow, pb *gitpb.Repos) *gitpb.ReposTable
t.AddUserVersion()
t.AddCurrentBranchName()
t.AddState()
+ f := func(repo *gitpb.Repo) string {
+ log.Info("repo =", repo.GetGoPath(), repo.GetCurrentVersion())
+ return repo.GetGoPath()
+ }
+ t.AddButtonFunc("cur version", f)
t.ShowTable()
return t
}