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