MCPcopy Create free account
hub / github.com/cli/cli / Get

Method Get

pkg/cmd/extension/browse/rg.go:23–33  ·  view source on GitHub ↗
(repoFullName string)

Source from the content-addressed store, hash-verified

21}
22
23func (g *readmeGetter) Get(repoFullName string) (string, error) {
24 repo, err := ghrepo.FromFullName(repoFullName)
25 if err != nil {
26 return "", err
27 }
28 readme, err := view.RepositoryReadme(g.client, repo, "")
29 if err != nil {
30 return "", err
31 }
32 return readme.Content, nil
33}

Callers

nothing calls this directly

Calls 2

FromFullNameFunction · 0.92
RepositoryReadmeFunction · 0.92

Tested by

no test coverage detected