SubPath returns the sub-directory inside the repo where entities live (e.g. skillsPath or agentsPath).
(kind entities.Kind)
| 104 | // SubPath returns the sub-directory inside the repo where entities live |
| 105 | // (e.g. skillsPath or agentsPath). |
| 106 | func (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 |
no outgoing calls