blob: e1d93b5691dd975f8f739b154ee820c4ef7fd9f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// 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 = 15
col = t.AddMasterBranchName()
col.Width = 10
col = t.AddFullPath()
col.Width = -1
return t
}
|