diff options
| author | Jeff Carr <[email protected]> | 2025-09-25 23:48:31 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-25 23:48:31 -0500 |
| commit | d3cbe7eec61b2072a736eb7975a157914ee81a52 (patch) | |
| tree | 6c61a79afb7df02176f96becc922c92c30d2d58f /set.table.go | |
| parent | 2232aa5823b4346bcb9ecb330bf718572f041485 (diff) | |
add generic PrintTable()
Diffstat (limited to 'set.table.go')
| -rw-r--r-- | set.table.go | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/set.table.go b/set.table.go index 1ab2526..5bc2cb1 100644 --- a/set.table.go +++ b/set.table.go @@ -5,7 +5,6 @@ package forgepb import ( "time" - "go.wit.com/lib/cobol" "go.wit.com/log" ) @@ -20,10 +19,22 @@ func (pset *Set) PrintTable() { tablePB.PrintTable() } -func (mt *PatchesTable) PrintTable() { - // log.Info("ShowTable() SENDING TO GUI") - mt.MakeTable() - cobol.PrintTable(mt.pb) +func (pb *Sets) PrintTable() { + for pset := range pb.IterAll() { + if pset.Patches == nil { + continue + } + tablePB := pset.Patches.makeStandardTable() + tablePB.MakeTable() + tablePB.PrintTable() + } +} + +func (pb *Patches) PrintTable() { + log.DaemonMode(true) // don't timestamp lines + + tablePB := pb.makeStandardTable() + tablePB.PrintTable() } func (pb *Patches) makeStandardTable() *PatchesTable { |
