diff options
| author | Jeff Carr <[email protected]> | 2025-10-07 11:36:35 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-07 11:36:35 -0500 |
| commit | 6abbecf0bf0ca87b3d2049e9cfe33365d9c9dda4 (patch) | |
| tree | b5858b138b2cfd83fb5fda2b5309ff877852a797 /tableDefault.go | |
| parent | a0e2897e2dc678986b080380af871f4d0e48421a (diff) | |
more table summary statsv0.0.171
Diffstat (limited to 'tableDefault.go')
| -rw-r--r-- | tableDefault.go | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/tableDefault.go b/tableDefault.go index 49c16c2..39857c6 100644 --- a/tableDefault.go +++ b/tableDefault.go @@ -13,7 +13,25 @@ import ( func (f *Forge) PrintDefaultTB(pb *gitpb.Repos) { tablePB := f.makeDefaultTB(pb) tablePB.PrintTable() - log.Printf("fpb.PrintDefaultTB: %d repos\n", pb.Len()) + var dirty int + var writable int + var bins int + var protos int + for repo := range pb.IterAll() { + if repo.IsDirty() { + dirty += 1 + } + if repo.IsBinary() { + bins += 1 + } + if repo.IsProtobuf() { + protos += 1 + } + if f.Config.IsWritable(repo.Namespace) { + writable += 1 + } + } + log.Printf("f.DefaultRepos: total=(%d) dirty=(%d) writable=(%d) binaries=(%d) protobufs(%d)\n", pb.Len(), dirty, writable, bins, protos) } func (f *Forge) getRepoType(repo *gitpb.Repo) string { |
