diff options
Diffstat (limited to 'tableErrors.go')
| -rw-r--r-- | tableErrors.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tableErrors.go b/tableErrors.go new file mode 100644 index 0000000..6ee1504 --- /dev/null +++ b/tableErrors.go @@ -0,0 +1,23 @@ +// Copyright 2025 WIT.COM Inc Licensed GPL 3.0 + +package forgepb + +import ( + "go.wit.com/lib/protobuf/gitpb" + "go.wit.com/log" +) + +func (f *Forge) PrintErrorsTB(pb *gitpb.Repos) string { + pb = pb.SortActual() + + var col *gitpb.RepoFunc + t := f.makeDefaultBaseTB(pb) + + col = t.AddStateChange() + col.Width = 16 + col = t.AddState() + col.Width = -1 + + t.PrintTable() + return log.Sprintf("f.ErrorsTB(): total=(%d)", pb.Len()) +} |
