diff options
| -rw-r--r-- | humanTable.go | 4 | ||||
| -rw-r--r-- | rill.go | 8 |
2 files changed, 3 insertions, 9 deletions
diff --git a/humanTable.go b/humanTable.go index b2311d5..cbc4853 100644 --- a/humanTable.go +++ b/humanTable.go @@ -58,9 +58,7 @@ func (f *Forge) PrintHumanTableDirty(allr *gitpb.Repos) { // log.Info(standardStart5("gopath", "cur name", "master", "user", "repo type")) log.Info(standardTable10("repopath", "cur br", "age", "master", "devel", "user", "curver", "lasttag", "next", "repo type")) // all := allr.SortByFullPath() - all := allr.All() - for all.Scan() { - repo := all.Next() + for repo := range allr.IterAll() { f.printRepoToTable(repo) if len(repo.DirtyList) != 0 { for _, line := range repo.DirtyList { @@ -76,9 +76,7 @@ var RillY int = 10 // todo: store x,y in forge config ? (or compute them. notsure) func (f *Forge) RillReload() int { var all []*gitpb.Repo - tmp := f.Repos.All() - for tmp.Scan() { - repo := tmp.Next() + for repo := range f.Repos.IterAll() { if !repo.IsValidDir() { log.Printf("%s %-50s", "got an invalid repo in forgepb.RillFuncError()", repo.GetGoPath()) continue @@ -114,9 +112,7 @@ func (f *Forge) RillReload() int { // todo: store x,y in forge config ? (or compute them. notsure) func (f *Forge) RillFuncError(rillf func(*gitpb.Repo) error) int { var all []*gitpb.Repo - tmp := f.Repos.All() - for tmp.Scan() { - repo := tmp.Next() + for repo := range f.Repos.IterAll() { if !repo.IsValidDir() { log.Printf("%s %-50s", "got an invalid repo in forgepb.RillFuncError()", repo.GetGoPath()) continue |
