Skip to content

Commit

Permalink
Extract list of formats to argument with default value
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf101 committed Aug 6, 2024
1 parent 3123d0c commit a6ba551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jacodb-ets/src/main/kotlin/org/jacodb/ets/utils/Dot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import kotlin.time.Duration.Companion.seconds

private val logger = KotlinLogging.logger {}

fun render(dotPath: Path) {
for (format in listOf("pdf")) {
fun render(dotPath: Path, listOfFormats: List<String> = listOf("pdf")) {
for (format in listOfFormats) {
logger.info { "Rendering DOT to ${format.uppercase()}..." }
val formatFile = dotPath.resolveSibling(dotPath.nameWithoutExtension + ".$format")
val cmd: List<String> = listOf(
Expand Down

0 comments on commit a6ba551

Please sign in to comment.