diff options
Diffstat (limited to 'humanTable.go')
| -rw-r--r-- | humanTable.go | 17 |
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() + ") " } |
