Skip to content

Commit

Permalink
change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszkolej committed Oct 18, 2023
1 parent 7253ec3 commit 73bfcdb
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,25 @@ private class CommandLineParser : CliktCommand() {

@OptIn(ExperimentalSerializationApi::class)
fun main(args: Array<String>) {
val reportBuilder = CommandLineParser()
reportBuilder.main(args)
val commandLineParser = CommandLineParser()
commandLineParser.main(args)

val outputLocation = "html-report"
val report = json.decodeFromStream<TestExecutionScheduleReport>(FileInputStream(reportBuilder.input))
val report = json.decodeFromStream<TestExecutionScheduleReport>(FileInputStream(commandLineParser.input))
val reportConfig = ReportConfig(
listOf(
HtmlConfig(
true,
outputLocation,
HtmlConfig.Script(
reportBuilder.mermaidScriptSrc,
reportBuilder.embed,
HtmlConfig.Script.Options(reportBuilder.maxTextSize)
commandLineParser.mermaidScriptSrc,
commandLineParser.embed,
HtmlConfig.Script.Options(commandLineParser.maxTextSize)
)
),
),
ReportConfig.Marks(),
false,
)
ReportCreator(logger).createReports(report, reportConfig, File(reportBuilder.outputDir), reportBuilder.taskName)
ReportCreator(logger).createReports(report, reportConfig, File(commandLineParser.outputDir), commandLineParser.taskName)
}

0 comments on commit 73bfcdb

Please sign in to comment.