diff options
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 { |
