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

Method SubPath

internal/repoconfig/repoconfig.go:106–118  ·  view source on GitHub ↗

SubPath returns the sub-directory inside the repo where entities live (e.g. skillsPath or agentsPath).

(kind entities.Kind)

Source from the content-addressed store, hash-verified

104// SubPath returns the sub-directory inside the repo where entities live
105// (e.g. skillsPath or agentsPath).
106func (r RepoEntry) SubPath(kind entities.Kind) string {
107 switch kind {
108 case entities.KindSkill:
109 return r.SkillsPath
110 case entities.KindAgent:
111 return r.AgentsPath
112 case entities.KindInstruction:
113 return r.AgentsPath
114 case entities.KindPlugin:
115 return r.PluginPath
116 }
117 return ""
118}
119
120// ---------- loading ----------------------------------------------------------
121

Callers 3

TestRepoEntrySubPathFunction · 0.95
fetchAllReposFunction · 0.80
RefreshAllMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestRepoEntrySubPathFunction · 0.76