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

Function catalogInstallKeyName

internal/metadata/catalog.go:211–220  ·  view source on GitHub ↗
(name, source string)

Source from the content-addressed store, hash-verified

209}
210
211func catalogInstallKeyName(name, source string) string {
212 if source == "" {
213 return name
214 }
215 owner, repo, _, _, ok := parseGithubSource(source)
216 if !ok {
217 return name
218 }
219 return owner + "/" + repo + ":" + name
220}
221
222// parseGithubSource extracts owner, repo, branch and in-repo path from a GitHub
223// URL or "owner/repo" shorthand. It supports the permalink, tree, and blob

Callers 1

parseCatalogMarkdownFunction · 0.85

Calls 1

parseGithubSourceFunction · 0.85

Tested by

no test coverage detected