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

Method Fetch

internal/plugin/local.go:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func (l *LocalPlugin) Fetch() ([]byte, error) {
30 content, err := os.ReadFile(addFilenameIfMissing(l.Path()))
31 if err != nil {
32 return nil, errors.WithStack(err)
33 }
34 return jsonPurifyPluginContent(content)
35}
36
37func (l *LocalPlugin) CanonicalName() string {
38 return l.name

Callers

nothing calls this directly

Calls 3

PathMethod · 0.95
addFilenameIfMissingFunction · 0.85
jsonPurifyPluginContentFunction · 0.85

Tested by

no test coverage detected