summaryrefslogtreecommitdiff
path: root/tablePatches.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-08 05:11:50 -0500
committerJeff Carr <[email protected]>2025-10-08 05:11:50 -0500
commitcd8daac7b211723bfa2b090554185b216df4ea03 (patch)
tree803e050753e5f5e7ae73e1ae3b6a2e4001a00fcf /tablePatches.go
parent3c2849b486c9034335104303865c203b1824a10d (diff)
send footers back
Diffstat (limited to 'tablePatches.go')
-rw-r--r--tablePatches.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/tablePatches.go b/tablePatches.go
index 1a8a1e2..8c55ca1 100644
--- a/tablePatches.go
+++ b/tablePatches.go
@@ -8,15 +8,16 @@ import (
"go.wit.com/log"
)
-func (pset *Set) PrintTable() {
+// returns footer
+func (pset *Set) PrintTable() string {
if pset == nil || pset.Patches == nil {
- return
+ return "pb was nil"
}
log.DaemonMode(true) // don't timestamp lines
tablePB := pset.Patches.MakeTable()
tablePB.PrintTable()
- log.Printf("pset.DefaultTable: %d patches\n", pset.Patches.Len())
+ return log.Sprintf("pset.DefaultTable: %d patches\n", pset.Patches.Len())
}
func (pb *Sets) PrintTable() {
@@ -30,12 +31,13 @@ func (pb *Sets) PrintTable() {
}
}
-func (pb *Patches) PrintTable() {
+// returns footer
+func (pb *Patches) PrintTable() string {
log.DaemonMode(true) // don't timestamp lines
tablePB := pb.MakeTable()
tablePB.PrintTable()
- log.Printf("pb.DefaultTable: %d patches\n", pb.Len())
+ return log.Sprintf("pb.DefaultTable: %d patches\n", pb.Len())
}
func (pb *Patches) MakeTable() *PatchesTable {