summaryrefslogtreecommitdiff
path: root/humanForgedTable.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-26 00:08:21 -0500
committerJeff Carr <[email protected]>2025-09-26 01:21:11 -0500
commit3682f21aaaf117d5f705aa0313ceacf7ab663006 (patch)
treef3bafe8d9c8eb0311768a0fcbac8ce9e0fdb6927 /humanForgedTable.go
parentd3cbe7eec61b2072a736eb7975a157914ee81a52 (diff)
make a new PB table to use the cobol.PrintTable() package
Diffstat (limited to 'humanForgedTable.go')
-rw-r--r--humanForgedTable.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/humanForgedTable.go b/humanForgedTable.go
new file mode 100644
index 0000000..dcfb7a9
--- /dev/null
+++ b/humanForgedTable.go
@@ -0,0 +1,28 @@
+// Copyright 2025 WIT.COM Inc Licensed GPL 3.0
+
+package forgepb
+
+import (
+ "go.wit.com/lib/protobuf/gitpb"
+)
+
+func (f *Forge) PrintForgedTable(pb *gitpb.Repos) {
+ tablePB := f.makeForgedTable(pb)
+ tablePB.MakeTable()
+ tablePB.PrintTable()
+}
+
+func (f *Forge) makeForgedTable(pb *gitpb.Repos) *gitpb.ReposTable {
+ t := pb.NewTable("forgedList")
+ t.NewUuid()
+
+ col := t.AddNamespace()
+ col.Width = 28
+
+ col = t.AddMasterVersion()
+ col.Width = 8
+
+ col = t.AddFullPath()
+ col.Width = -1
+ return t
+}