Skip to content

Commit 949b1d1

Browse files
committed
Output amount of patches found
1 parent cc1348f commit 949b1d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

paperweight-core/src/main/kotlin/io/papermc/paperweight/core/tasks/patchroulette/ShowPatchRouletteList.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ abstract class ShowPatchRouletteList : AbstractPatchRouletteTask() {
4545
abstract val pathFilter: Property<String>
4646

4747
override fun run() {
48+
var results = 0;
49+
4850
logger.lifecycle("| Status | User | Path ")
4951
getAllPatches().forEach { patch ->
5052
if (statusFilter.isPresent && patch.status != statusFilter.get()) {
@@ -62,6 +64,9 @@ abstract class ShowPatchRouletteList : AbstractPatchRouletteTask() {
6264
}
6365

6466
logger.lifecycle(String.format("| %-9s | %-20s | %s", patch.status, patch.responsibleUser, patch.path))
67+
results++
6568
}
69+
70+
logger.lifecycle("$results patches found")
6671
}
6772
}

0 commit comments

Comments
 (0)