blob: b727f2b6280fbe6f41bbd1a46531fffd13d2faf1 (
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
|
// 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.PrintTable()
}
func (f *Forge) makeForgedTable(pb *gitpb.Repos) *gitpb.ReposTable {
t := pb.NewTable("forgedList")
t.NewUuid()
var col *gitpb.RepoAnyFunc
col = t.AddMasterVersion()
col.Width = 15
col = t.AddMasterBranchName()
col.Width = 10
col = t.AddFullPath()
col.Width = -1
return t
}
|