summaryrefslogtreecommitdiff
path: root/humanTable.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-08 10:11:17 -0600
committerJeff Carr <[email protected]>2025-01-08 10:11:17 -0600
commitf9dd82cdcc6db632bfdecf2623e7e1486a37c6b3 (patch)
treeafb822a45cc63ae13c879c0bd644aee5ec9c868a /humanTable.go
parent4f84a4e584ff49f4351c236df633f1c690ccbda5 (diff)
work on new protobuf for patchsets
Diffstat (limited to 'humanTable.go')
-rw-r--r--humanTable.go17
1 files changed, 16 insertions, 1 deletions
diff --git a/humanTable.go b/humanTable.go
index 0fe2f31..bc6add5 100644
--- a/humanTable.go
+++ b/humanTable.go
@@ -35,13 +35,16 @@ import (
func (f *Forge) PrintHumanTable(allr *gitpb.Repos) {
log.DaemonMode(true)
+ var count int
// log.Info(standardStart5("gopath", "cur name", "master", "user", "repo type"))
log.Info(standardTable8("repopath", "cur br", "age", "target", "master", "devel", "user", "curver", "repo type"))
all := allr.SortByFullPath()
for all.Scan() {
repo := all.Next()
f.sendRepoToTable(repo)
+ count += 1
}
+ log.Info("Total git repositories:", count)
}
func standardTable5(arg1, arg2, arg3, arg4, arg5 string) string {
@@ -156,7 +159,19 @@ func (f *Forge) sendRepoToTable(repo *gitpb.Repo) {
end += "(m:" + repo.GetMasterBranchName() + ") "
}
- if repo.GetState() != "" {
+ if repo.GetDevelBranchName() != "devel" {
+ end += "(d:" + repo.GetDevelBranchName() + ") "
+ }
+
+ if repo.GetUserBranchName() != f.Config.Username {
+ end += "(u:" + repo.GetUserBranchName() + ") "
+ }
+
+ switch repo.GetState() {
+ case "PERFECT":
+ case "unchanged":
+ // end += "(invalid tag) "
+ default:
end += "(" + repo.GetState() + ") "
}