Commit 880d3a8e authored by vaikas-google's avatar vaikas-google

Address code review comments

parent b6cccb45
......@@ -27,6 +27,7 @@ type GithubRegistry struct {
client *github.Client
}
// NewGithubRegistry creates a Registry that can be used to talk to github.
func NewGithubRegistry(owner string, repository string) *GithubRegistry {
return &GithubRegistry{
owner: owner,
......@@ -35,6 +36,7 @@ func NewGithubRegistry(owner string, repository string) *GithubRegistry {
}
}
// List the types from the Registry.
func (g *GithubRegistry) List() ([]Type, error) {
// First list all the types at the top level.
types, err := g.getDirs(TypesDir)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment