summaryrefslogtreecommitdiff
path: root/tableErrors.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-11-02 21:09:43 -0600
committerJeff Carr <[email protected]>2025-11-02 21:09:43 -0600
commit3de288c8faa14311618dc32cbaf4e83606328fd2 (patch)
tree74ba2e8a6483d5bda90145914dd19485f5b56d05 /tableErrors.go
parentab7db21e07faac62f1abfb2b33634586979a0ded (diff)
new table for RunOnRepos()v0.0.198
Diffstat (limited to 'tableErrors.go')
-rw-r--r--tableErrors.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/tableErrors.go b/tableErrors.go
new file mode 100644
index 0000000..6ee1504
--- /dev/null
+++ b/tableErrors.go
@@ -0,0 +1,23 @@
+// Copyright 2025 WIT.COM Inc Licensed GPL 3.0
+
+package forgepb
+
+import (
+ "go.wit.com/lib/protobuf/gitpb"
+ "go.wit.com/log"
+)
+
+func (f *Forge) PrintErrorsTB(pb *gitpb.Repos) string {
+ pb = pb.SortActual()
+
+ var col *gitpb.RepoFunc
+ t := f.makeDefaultBaseTB(pb)
+
+ col = t.AddStateChange()
+ col.Width = 16
+ col = t.AddState()
+ col.Width = -1
+
+ t.PrintTable()
+ return log.Sprintf("f.ErrorsTB(): total=(%d)", pb.Len())
+}