MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / fetchSingleRepo

Function fetchSingleRepo

internal/cli/management.go:1269–1276  ·  view source on GitHub ↗
(kind entities.Kind, owner, repo, branch, path string, out io.Writer)

Source from the content-addressed store, hash-verified

1267}
1268
1269func fetchSingleRepo(kind entities.Kind, owner, repo, branch, path string, out io.Writer) error {
1270 added, err := fetchSingleRepoCount(kind, owner, repo, branch, path)
1271 if err != nil {
1272 return err
1273 }
1274 fmt.Fprintf(out, "Fetched %d %ss from %s/%s\n", added, kind, owner, repo)
1275 return nil
1276}
1277
1278func fetchSingleRepoCount(kind entities.Kind, owner, repo, branch, path string) (int, error) {
1279 client := fetching.New()

Callers 1

entityUpdateCommandFunction · 0.85

Calls 1

fetchSingleRepoCountFunction · 0.85

Tested by

no test coverage detected