Skip to content

Commit 436ecd1

Browse files
committed
Add new report mode
1 parent 7d5fa9d commit 436ecd1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmd/report.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ func init() {
1212
Short: "Generate HTML Report based on screenshot output",
1313
RunE: runReport,
1414
}
15-
reportCmd.Flags().StringVar(&options.ReportFile, "report", "", "Report name")
15+
reportCmd.Flags().StringVar(&options.ReportFile, "report", "report.html", "Report name")
1616
RootCmd.AddCommand(reportCmd)
1717
}
1818

1919
func runReport(_ *cobra.Command, _ []string) error {
20-
if options.ReportFile == "" {
21-
options.ReportFile = path.Join(options.Output, "report.html")
22-
}
20+
options.ReportFile = path.Join(options.Output, "report.html")
2321
core.RenderReport(options)
2422
return nil
2523
}

0 commit comments

Comments
 (0)