// Copyright 2025 WIT.COM Inc Licensed GPL 3.0 package gitpb import ( "go.wit.com/log" ) func (pb *Repos) PrintGowebdTable() string { t := pb.MakeGowebdTable("missing repos table") t.PrintTable() return log.Sprintf("pb.GowebReposTB: total=(%d)", pb.Len()) } func (pb *Repos) MakeGowebdTable(name string) *ReposTable { t := pb.NewTable(name) t.NewUuid() var col *RepoFunc // var col int col = t.AddNamespace() col.Width = 30 col = t.AddMasterVersion() // col.SetTitle("mver") col.Width = 15 col = t.AddStringFunc("Tags", func(r *Repo) string { if r.Tags == nil { return "nil" } // log.Infof("repo: %v\n", r) return log.Sprintf("len(%d)", r.Tags.Len()) }) col.Width = 9 col = t.AddStringFunc("cur tag", func(r *Repo) string { if r.CurrentTag == nil { return "nil" } return "ok" }) col.Width = 9 col = t.AddDevelVersion() col.Width = 15 col = t.AddFullPath() col.Width = -1 return t }