MCPcopy Index your code
hub / github.com/commitdev/zero / GetModulesByName

Function GetModulesByName

internal/registry/registry.go:46–53  ·  view source on GitHub ↗
(registry Registry, name string)

Source from the content-addressed store, hash-verified

44}
45
46func GetModulesByName(registry Registry, name string) []string {
47 for _, v := range registry {
48 if v.Name == name {
49 return v.ModuleSources
50 }
51 }
52 return []string{}
53}
54
55func AvailableLabels(registry Registry) []string {
56 labels := make([]string, len(registry))

Callers 2

chooseStackFunction · 0.92
TestGetModulesByNameFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestGetModulesByNameFunction · 0.74