LoadedModulePaths returns a sorted list of the paths to all loaded modules
()
| 1044 | |
| 1045 | // LoadedModulePaths returns a sorted list of the paths to all loaded modules |
| 1046 | func (h *shellCallHandler) LoadedModulePaths() []string { |
| 1047 | return slices.Sorted(h.loadedModuleValues(func(def *moduleDef) string { |
| 1048 | return h.modRelPath(def) |
| 1049 | })) |
| 1050 | } |
| 1051 | |
| 1052 | // loadedModuleValues iterates over all loaded module definition values after applying provided function |
| 1053 | func (h *shellCallHandler) loadedModuleValues(fn func(*moduleDef) string) iter.Seq[string] { |
no test coverage detected