summaryrefslogtreecommitdiff
path: root/tableConfigs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-16 04:15:37 -0500
committerJeff Carr <[email protected]>2025-10-16 04:15:37 -0500
commitc5ba7ffcb12931b0507365142e73dd79cedaf901 (patch)
tree754303589544679d71dfb07341d715c3b814fb19 /tableConfigs.go
parent192985619e462e22ef6967557bf1398a9613d0f6 (diff)
make autogenerated config tables. bye old cruft!
Diffstat (limited to 'tableConfigs.go')
-rw-r--r--tableConfigs.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/tableConfigs.go b/tableConfigs.go
new file mode 100644
index 0000000..914c4af
--- /dev/null
+++ b/tableConfigs.go
@@ -0,0 +1,26 @@
+// Copyright 2025 WIT.COM Inc Licensed GPL 3.0
+
+package forgepb
+
+import (
+ "go.wit.com/log"
+)
+
+// returns footer
+func (pb *ForgeConfigs) PrintTable() string {
+ if pb == nil {
+ return "pb was nil"
+ }
+ tablePB := pb.MakeTable()
+ tablePB.PrintTable()
+ return log.Sprintf("forge Configs DefaultTable: %d entries", pb.Len())
+}
+
+func (pb *ForgeConfigs) MakeTable() *ForgeConfigsTable {
+ t := pb.NewTable("tagList")
+ t.NewUuid()
+
+ col := t.AddNamespace()
+ col.Width = 28
+ return t
+}