Skip to content

Commit 3f959e0

Browse files
committed
Fix issue #743
added `—no-banner` to `html-report` command.
1 parent 4faa08b commit 3f959e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/html_report.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func GetHTMLReportCommand() *cobra.Command {
4848
RunE: func(cmd *cobra.Command, args []string) error {
4949

5050
noStyleFlag, _ := cmd.Flags().GetBool("no-style")
51+
noBannerFlag, _ := cmd.Flags().GetBool("no-banner")
5152
baseFlag, _ := cmd.Flags().GetString("base")
5253
skipCheckFlag, _ := cmd.Flags().GetBool("skip-check")
5354
timeoutFlag, _ := cmd.Flags().GetInt("timeout")
@@ -62,7 +63,9 @@ func GetHTMLReportCommand() *cobra.Command {
6263
color.DisableColors()
6364
}
6465

65-
PrintBanner()
66+
if !noBannerFlag {
67+
PrintBanner()
68+
}
6669

6770
// check for file args
6871
if len(args) == 0 {
@@ -217,6 +220,7 @@ func GetHTMLReportCommand() *cobra.Command {
217220
}
218221
cmd.Flags().BoolP("disableTimestamp", "d", false, "Disable timestamp in report")
219222
cmd.Flags().BoolP("no-style", "q", false, "Disable styling and color output, just plain text (useful for CI/CD)")
223+
cmd.Flags().BoolP("no-banner", "b", false, "Disable the banner output")
220224
cmd.Flags().String("ignore-file", "", "Path to ignore file")
221225

222226
return cmd

0 commit comments

Comments
 (0)