MCPcopy Index your code
hub / github.com/dagger/dagger / debugLoadedModules

Method debugLoadedModules

cmd/dagger/shell_exec.go:1032–1043  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1030}
1031
1032func (h *shellCallHandler) debugLoadedModules() []string {
1033 return slices.Collect(h.loadedModuleValues(func(def *moduleDef) string {
1034 a, r, d := def.SourceRoot, h.modRelPath(def), def.SourceDigest
1035 if a != r {
1036 a += " → " + r
1037 }
1038 if d != "" {
1039 a += " (" + d + ")"
1040 }
1041 return a
1042 }))
1043}
1044
1045// LoadedModulePaths returns a sorted list of the paths to all loaded modules
1046func (h *shellCallHandler) LoadedModulePaths() []string {

Callers 2

InitializeMethod · 0.95
ChangeDirMethod · 0.95

Calls 2

loadedModuleValuesMethod · 0.95
modRelPathMethod · 0.95

Tested by

no test coverage detected