MCPcopy Index your code
hub / github.com/jetify-com/devbox / BuiltInForPackage

Function BuiltInForPackage

plugins/builtins.go:45–52  ·  view source on GitHub ↗
(pkgName string)

Source from the content-addressed store, hash-verified

43}
44
45func BuiltInForPackage(pkgName string) ([]byte, error) {
46 for re, name := range builtInMap {
47 if re.MatchString(pkgName) {
48 return builtIn.ReadFile(name + ".json")
49 }
50 }
51 return builtIn.ReadFile(pkgName + ".json")
52}
53
54func (f *BuiltIn) FileContent(contentPath string) ([]byte, error) {
55 return builtIn.ReadFile(contentPath)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected