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

Function parseRepoJSON

internal/repoconfig/repoconfig.go:324–330  ·  view source on GitHub ↗

---------- JSON parsing -----------------------------------------------------

(data []byte)

Source from the content-addressed store, hash-verified

322// ---------- JSON parsing -----------------------------------------------------
323
324func parseRepoJSON(data []byte) (map[string]RepoEntry, error) {
325 var out map[string]RepoEntry
326 if err := json.Unmarshal(data, &out); err != nil {
327 return nil, fmt.Errorf("repoconfig: parse: %w", err)
328 }
329 return out, nil
330}
331
332func repoConfigKey(kind entities.Kind) string {
333 if kind == entities.KindInstruction {

Callers 7

TestParseRepoJSONFunction · 0.85
loadBundledFunction · 0.85
LoadLocalSourceFunction · 0.85
loadRemoteWithCacheFunction · 0.85
loadFromCacheFunction · 0.85
MigrateRepoConfigFilesFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestParseRepoJSONFunction · 0.68