toDepthOf

abstract infix fun String.toDepthOf(depth: Int)(source)

A friendly-syntax approach to including collections of projects

projectCollections {
"apps" toDepthOf 1
"components" toDepthOf 1
"design-system" toDepthOf 1
"features" toDepthOf 2
// means "features/first/project-a", "features/first/project-b", "features/second/project-a", etc...
}

Receiver

A String interpreted as the top-level directory name

Parameters

depth

An Int indicating how deep into the top-level directory members we are required to traverse