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

Method Path

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

Source from the content-addressed store, hash-verified

55}
56
57func (l *LocalPlugin) Path() string {
58 path := os.ExpandEnv(l.ref.Path)
59 if !strings.HasSuffix(path, pluginConfigName) {
60 path = filepath.Join(path, pluginConfigName)
61 }
62 if filepath.IsAbs(path) {
63 return path
64 }
65 return filepath.Join(l.pluginDir, path)
66}
67
68func addFilenameIfMissing(s string) string {
69 if strings.HasSuffix(s, pluginConfigName) {

Callers 4

FetchMethod · 0.95
HashMethod · 0.95
FileContentMethod · 0.95
getConfigIfAnyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected