Skip to content

Commit 31fc736

Browse files
committed
feat(cli): Print the number of bookings for the sum
1 parent 8a076c2 commit 31fc736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/main/kotlin/FilterCommand.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ class FilterCommand : CliktCommand("filter") {
8484
}
8585

8686
val sum = filteredBookings.sumOf { it.amount.toDouble() }
87-
println("Sum: ${"%.2f".format(sum)}")
87+
println("Sum of ${filteredBookings.count()} booking(s): ${"%.2f".format(sum)}")
8888
}
8989
}

0 commit comments

Comments
 (0)