Skip to content

Commit 8abc972

Browse files
add disable stdout option (#1871)
1 parent 35a9961 commit 8abc972

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

runner/options.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ type Options struct {
309309
HeadlessOptionalArguments goflags.StringSlice
310310
Protocol string
311311
OutputFilterErrorPagePath string
312+
DisableStdout bool
312313
// AssetUpload
313314
AssetUpload bool
314315
// AssetName

runner/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ func (r *Runner) RunEnumeration() {
10981098
}
10991099
}
11001100

1101-
if !jsonOrCsv || jsonAndCsv || r.options.OutputAll {
1101+
if !r.options.DisableStdout && (!jsonOrCsv || jsonAndCsv || r.options.OutputAll) {
11021102
gologger.Silent().Msgf("%s\n", resp.str)
11031103
}
11041104

0 commit comments

Comments
 (0)