Skip to content

Commit 9fd0572

Browse files
Adding Simple HTML report as an option to CLI
Adding Simple HTML report as an option to CLI to allow invocation via CLI
1 parent 48b930b commit 9fd0572

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cli/src/main/java/org/hjug/refactorfirst/ReportCommand.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.apache.maven.project.MavenProject;
1212
import org.hjug.refactorfirst.report.CsvReport;
1313
import org.hjug.refactorfirst.report.HtmlReport;
14+
import org.hjug.refactorfirst.report.SimpleHtmlReport;
1415
import org.hjug.refactorfirst.report.json.JsonReportExecutor;
1516
import picocli.CommandLine.Command;
1617

@@ -58,6 +59,10 @@ public Integer call() {
5859
inferArgumentsFromMavenProject();
5960
populateDefaultArguments();
6061
switch (reportType) {
62+
case SIMPLE_HTML:
63+
SimpleHtmlReport simpleHtmlReport = new SimpleHtmlReport();
64+
simpleHtmlReport.execute(showDetails, projectName, projectVersion, outputDirectory, baseDir);
65+
return 0;
6166
case HTML:
6267
HtmlReport htmlReport = new HtmlReport();
6368
htmlReport.execute(showDetails, projectName, projectVersion, outputDirectory, baseDir);

cli/src/main/java/org/hjug/refactorfirst/ReportType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.hjug.refactorfirst;
22

33
public enum ReportType {
4+
SIMPLE_HTML,
45
HTML,
56
JSON,
67
CSV;

0 commit comments

Comments
 (0)