diff options
Diffstat (limited to 'human.go')
| -rw-r--r-- | human.go | 21 |
1 files changed, 7 insertions, 14 deletions
@@ -25,7 +25,7 @@ func PrintReport(readonly string, onlydirty string, perfect string) { continue } - if repo.ReadOnly() { + if me.forge.Config.IsReadOnly(repo.GoPath()) { if readonly == "true" { log.Info(header + "readonly") } @@ -60,28 +60,21 @@ func PrintReleaseReport(readonly string, perfect string) { log.Info(repolist.ReleaseReportHeader()) - loop := me.repos.View.ReposSortByName() + loop := me.forge.Repos.SortByGoPath() for loop.Scan() { - repo := loop.Repo() - - if repo.ReadOnly() && (readonly == "true") { + check := loop.Next() + if me.forge.IsReadOnly(check) { continue } - if (repo.State() == "PERFECT") && (perfect == "true") { - continue - } - if repo.Status.IsReleased() { + if check.GetCurrentBranchVersion() == check.GetTargetVersion() { continue } count += 1 - header := repo.StandardReleaseHeader() - log.Info(header) - check := me.forge.Repos.FindByGoPath(repo.GoPath()) if check == nil { - log.Info("boo, you didn't git clone", repo.GoPath()) + log.Info("boo, you didn't git clone", check.GoPath) continue } - log.Info(me.forge.StandardReleaseHeader(check, repo.State())) + log.Info(me.forge.StandardReleaseHeader(check, "")) } log.Info(fmt.Sprintf("total repo count = %d", count)) } |
