MCPcopy Index your code
hub / github.com/devspace-sh/devspace / printDependencyRecursive

Function printDependencyRecursive

cmd/print.go:221–229  ·  view source on GitHub ↗
(prefix string, dep types.Dependency, maxDepth int, log logger.Logger)

Source from the content-addressed store, hash-verified

219}
220
221func printDependencyRecursive(prefix string, dep types.Dependency, maxDepth int, log logger.Logger) {
222 if maxDepth == 0 {
223 return
224 }
225 log.WriteString(logrus.InfoLevel, prefix+"> "+dep.Name()+"\n")
226 for _, child := range dep.Children() {
227 printDependencyRecursive(prefix+"--", child, maxDepth-1, log)
228 }
229}

Callers 1

printExtraInfoFunction · 0.85

Calls 3

WriteStringMethod · 0.65
NameMethod · 0.65
ChildrenMethod · 0.65

Tested by

no test coverage detected