summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
Diffstat (limited to 'find.go')
-rw-r--r--find.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/find.go b/find.go
index 3030f2b..f3c84a4 100644
--- a/find.go
+++ b/find.go
@@ -29,6 +29,20 @@ func doFind() *gitpb.Repos {
return findAll()
}
+func doFindRepo(reponame string) *gitpb.Repos {
+ repos := gitpb.NewRepos()
+
+ found := me.forge.Repos.FindByNamespace(reponame)
+ if found != nil {
+ repos.Append(found)
+ }
+ found = me.forge.Repos.FindByFullPath(reponame)
+ if found != nil {
+ repos.Append(found)
+ }
+ return repos
+}
+
func findRepos() *gitpb.Repos {
if argv.Show == nil {
return findMine()