summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
Diffstat (limited to 'find.go')
-rw-r--r--find.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/find.go b/find.go
index 31659db..04824af 100644
--- a/find.go
+++ b/find.go
@@ -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() {