Skip to content

Commit 1bf4697

Browse files
committed
Don't print 'Generating event definitions...' message for JSON, Markdown and HTML
1 parent 1f83b11 commit 1bf4697

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

util/cg_gen_events.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,16 @@ func CGGenEvents(outputDir, url, cgeVersion, language string) error {
5050
}
5151
}
5252

53-
cli.Begin("Generating event definitions...")
53+
if language != "json" && language != "markdown" && language != "html" {
54+
cli.Begin("Generating event definitions...")
55+
56+
}
5457
_, err = Execute(true, filepath.Join(cgGenEventsPath, exeName), url, "--languages", language, "--output", outputDir)
58+
5559
if err == nil {
5660
cli.Finish()
5761
}
62+
5863
return err
5964
}
6065

0 commit comments

Comments
 (0)