diff options
Diffstat (limited to 'find.go')
| -rw-r--r-- | find.go | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -17,6 +17,11 @@ func (f *FindCmd) findRepos() { return } + if f.Pub != nil { + findPublishable() + return + } + if f.All { findAll() return @@ -114,6 +119,17 @@ func findUser() { } } +func findPublishable() { + all := me.forge.Repos.SortByFullPath() + for all.Scan() { + repo := all.Next() + if repo.GetTargetVersion() == "" { + continue + } + me.found.AppendByGoPath(repo) + } +} + func findReposWithPatches() { all := me.forge.Repos.SortByFullPath() for all.Scan() { |
