summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 11:36:35 -0500
committerJeff Carr <[email protected]>2025-10-07 11:36:35 -0500
commit6abbecf0bf0ca87b3d2049e9cfe33365d9c9dda4 (patch)
treeb5858b138b2cfd83fb5fda2b5309ff877852a797
parenta0e2897e2dc678986b080380af871f4d0e48421a (diff)
more table summary statsv0.0.171
-rw-r--r--humanShowRepo.go2
-rw-r--r--tableDefault.go20
-rw-r--r--tablePatches.go3
3 files changed, 23 insertions, 2 deletions
diff --git a/humanShowRepo.go b/humanShowRepo.go
index 066ff6f..dd2582a 100644
--- a/humanShowRepo.go
+++ b/humanShowRepo.go
@@ -41,7 +41,7 @@ func (f *Forge) HumanPrintRepo(check *gitpb.Repo) {
} else {
log.Info("IsPrivate() == false")
}
- if ok, compiled, err := check.IsProtobuf(); ok {
+ if ok, compiled, err := check.ScanProtobuf(); ok {
log.Info(log.Sprint("IsProtobuf() == true compiled protobuf files = ", compiled))
if err != nil {
log.Info("IsProtobuf() ERROR = ", err)
diff --git a/tableDefault.go b/tableDefault.go
index 49c16c2..39857c6 100644
--- a/tableDefault.go
+++ b/tableDefault.go
@@ -13,7 +13,25 @@ import (
func (f *Forge) PrintDefaultTB(pb *gitpb.Repos) {
tablePB := f.makeDefaultTB(pb)
tablePB.PrintTable()
- log.Printf("fpb.PrintDefaultTB: %d repos\n", pb.Len())
+ var dirty int
+ var writable int
+ var bins int
+ var protos int
+ for repo := range pb.IterAll() {
+ if repo.IsDirty() {
+ dirty += 1
+ }
+ if repo.IsBinary() {
+ bins += 1
+ }
+ if repo.IsProtobuf() {
+ protos += 1
+ }
+ if f.Config.IsWritable(repo.Namespace) {
+ writable += 1
+ }
+ }
+ log.Printf("f.DefaultRepos: total=(%d) dirty=(%d) writable=(%d) binaries=(%d) protobufs(%d)\n", pb.Len(), dirty, writable, bins, protos)
}
func (f *Forge) getRepoType(repo *gitpb.Repo) string {
diff --git a/tablePatches.go b/tablePatches.go
index f6eb983..1a8a1e2 100644
--- a/tablePatches.go
+++ b/tablePatches.go
@@ -16,6 +16,7 @@ func (pset *Set) PrintTable() {
tablePB := pset.Patches.MakeTable()
tablePB.PrintTable()
+ log.Printf("pset.DefaultTable: %d patches\n", pset.Patches.Len())
}
func (pb *Sets) PrintTable() {
@@ -25,6 +26,7 @@ func (pb *Sets) PrintTable() {
}
tablePB := pset.Patches.MakeTable()
tablePB.PrintTable()
+ log.Printf("psets.DefaultTable loop: %d patches\n", pset.Patches.Len())
}
}
@@ -33,6 +35,7 @@ func (pb *Patches) PrintTable() {
tablePB := pb.MakeTable()
tablePB.PrintTable()
+ log.Printf("pb.DefaultTable: %d patches\n", pb.Len())
}
func (pb *Patches) MakeTable() *PatchesTable {