summaryrefslogtreecommitdiff
path: root/windowReposNew.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-05 06:11:57 -0500
committerJeff Carr <[email protected]>2025-10-05 06:11:57 -0500
commitc27727c8e0111f4830ac365614a0de7198314306 (patch)
tree708a97fe4ac3d72101f88e398a86a9e74a74ae8e /windowReposNew.go
parent44c1fcc9c316636fdc4f52f11ee3eb8045cdfcd1 (diff)
s/GoPath/Namespace/v0.25.57
Diffstat (limited to 'windowReposNew.go')
-rw-r--r--windowReposNew.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/windowReposNew.go b/windowReposNew.go
index eea3a02..d2d8bfa 100644
--- a/windowReposNew.go
+++ b/windowReposNew.go
@@ -58,7 +58,7 @@ func makeReposWinNew() *gadgets.GenericWindow {
// display the protobuf
t = addWindowPB(insertWin, found)
f := func(repo *gitpb.Repo) {
- log.Info("got to ReposTable.Custom() id =", repo.GetGoPath(), repo.GetCurrentVersion())
+ log.Info("got to ReposTable.Custom() id =", repo.Namespace, repo.GetCurrentVersion())
}
t.Custom(f)
log.Info("table has uuid", t.GetUuid())
@@ -75,7 +75,7 @@ func makeReposWinNew() *gadgets.GenericWindow {
// make the window for the first time
t = addWindowPB(insertWin, found)
f := func(repo *gitpb.Repo) {
- log.Info("got to ReposTable.Custom() id =", repo.GetGoPath(), repo.GetCurrentVersion())
+ log.Info("got to ReposTable.Custom() id =", repo.Namespace, repo.GetCurrentVersion())
}
t.Custom(f)
log.Info("table has uuid", t.GetUuid())
@@ -90,7 +90,7 @@ func makeReposWinNew() *gadgets.GenericWindow {
all := me.forge.Repos.SortByFullPath()
for all.Scan() {
repo := all.Next()
- if !me.forge.Config.IsFavorite(repo.GetGoPath()) {
+ if !me.forge.Config.IsFavorite(repo.Namespace) {
continue
}
found.AppendByFullPath(repo)
@@ -99,7 +99,7 @@ func makeReposWinNew() *gadgets.GenericWindow {
// make the window for the first time
t = addWindowPB(insertWin, found)
f := func(repo *gitpb.Repo) {
- log.Info("got to ReposTable.Custom() id =", repo.GetGoPath(), repo.GetCurrentVersion())
+ log.Info("got to ReposTable.Custom() id =", repo.Namespace, repo.GetCurrentVersion())
}
t.Custom(f)
log.Info("table has uuid", t.GetUuid())
@@ -114,7 +114,7 @@ func makeReposWinNew() *gadgets.GenericWindow {
all := me.forge.Repos.SortByFullPath()
for all.Scan() {
repo := all.Next()
- if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
+ if me.forge.Config.IsReadOnly(repo.Namespace) {
continue
}
found.AppendByFullPath(repo)
@@ -123,7 +123,7 @@ func makeReposWinNew() *gadgets.GenericWindow {
// make the window for the first time
t = addWindowPB(insertWin, found)
f := func(repo *gitpb.Repo) {
- log.Info("got to ReposTable.Custom() id =", repo.GetGoPath(), repo.GetCurrentVersion())
+ log.Info("got to ReposTable.Custom() id =", repo.Namespace, repo.GetCurrentVersion())
}
t.Custom(f)
log.Info("table has uuid", t.GetUuid())
@@ -144,7 +144,7 @@ func makeReposWinNew() *gadgets.GenericWindow {
// display the protobuf
t = addWindowPB(insertWin, found)
f := func(repo *gitpb.Repo) {
- log.Info("got to ReposTable.Custom() id =", repo.GetGoPath(), repo.GetCurrentVersion())
+ log.Info("got to ReposTable.Custom() id =", repo.Namespace, repo.GetCurrentVersion())
}
t.Custom(f)
log.Info("table has uuid", t.GetUuid())
@@ -160,10 +160,10 @@ func addWindowPB(win *gadgets.GenericWindow, pb *gitpb.Repos) *gitpb.ReposTable
t.SetParent(tbox)
sf := t.AddStringFunc("repo", func(r *gitpb.Repo) string {
- return r.GetGoPath()
+ return r.Namespace
})
sf.Custom = func(r *gitpb.Repo) {
- log.Info("do button click on", r.GetGoPath())
+ log.Info("do button click on", r.Namespace)
}
t.AddTimeFunc("age", func(repo *gitpb.Repo) time.Time {
return repo.NewestTime()
@@ -176,8 +176,8 @@ func addWindowPB(win *gadgets.GenericWindow, pb *gitpb.Repos) *gitpb.ReposTable
t.AddCurrentBranchName()
t.AddState()
f := func(repo *gitpb.Repo) string {
- log.Info("repo =", repo.GetGoPath(), repo.GetCurrentVersion())
- return repo.GetGoPath()
+ log.Info("repo =", repo.Namespace, repo.GetCurrentVersion())
+ return repo.Namespace
}
t.AddButtonFunc("cur version", f)
t.ShowTable()