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

Function LoadConfigFromInclude

internal/plugin/includes.go:10–25  ·  view source on GitHub ↗
(include string, lockfile *lock.File, workingDir string)

Source from the content-addressed store, hash-verified

8)
9
10func LoadConfigFromInclude(include string, lockfile *lock.File, workingDir string) (*Config, error) {
11 var includable Includable
12 var err error
13 if t, name, _ := strings.Cut(include, ":"); t == "plugin" {
14 includable = devpkg.PackageFromStringWithDefaults(
15 name,
16 lockfile,
17 )
18 } else {
19 includable, err = parseIncludable(include, workingDir)
20 if err != nil {
21 return nil, err
22 }
23 }
24 return getConfigIfAny(includable, lockfile.ProjectDir())
25}

Callers 1

loadRecursiveMethod · 0.92

Calls 4

parseIncludableFunction · 0.85
getConfigIfAnyFunction · 0.85
ProjectDirMethod · 0.65

Tested by

no test coverage detected