diff options
Diffstat (limited to 'find.go')
| -rw-r--r-- | find.go | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -42,6 +42,11 @@ func (f *FindCmd) findRepos() { return } + if f.User { + findUser() + return + } + findAll() } @@ -98,3 +103,13 @@ func findAll() { me.found.AppendByGoPath(repo) } } + +func findUser() { + all := me.forge.Repos.SortByFullPath() + for all.Scan() { + repo := all.Next() + if repo.GetCurrentBranchName() == repo.GetUserBranchName() { + me.found.AppendByGoPath(repo) + } + } +} |
