summaryrefslogtreecommitdiff
path: root/tableConfigs.go
diff options
context:
space:
mode:
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
+}