Skip to content

Commit

Permalink
Add a bit of additional functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
joshafeinberg committed Nov 7, 2024
1 parent 19ad8a9 commit b118716
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,28 @@ abstract class AffectedModuleDetector(protected val logger: Logger?) {
).hasAffectedProjects()
}

/**
* Returns a set of all affected project paths
*
* Can only be called during the execution phase
*/
fun affectedProjects(project: Project): Set<ProjectPath> {
return getOrThrow(
project
).getAllAffectedProjects()
}

/**
* Returns a set of all changed project paths
*
* Can only be called during the execution phase
*/
fun changedProjects(project: Project): Set<ProjectPath> {
return getOrThrow(
project
).getAllChangedProjects()
}

/**
* Returns true if the project was provided via [MODULES_ARG] or no [MODULES_ARG] was set
*
Expand Down

0 comments on commit b118716

Please sign in to comment.