Skip to content

Commit

Permalink
✨ announce where results are written (#4132)
Browse files Browse the repository at this point in the history
Before this change, when running with '-o foo' the output would end
with:

```
RESULTS
-------
```

This was rather confusing. There's of course many ways to make this more
clear, this commit adds a log line announcing where the output is
written to:

```
RESULTS
-------
Writing to foo
```

Signed-off-by: Arnout Engelen <arnout@bzzt.net>
  • Loading branch information
raboof committed Jun 6, 2024
1 parent 7e7e2f5 commit 3da6db5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/scorecard_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func FormatResults(
if err != nil {
return fmt.Errorf("unable to create output file: %w", err)
}
fmt.Fprintln(os.Stderr, "Writing results to", opts.ResultsFile)
defer output.Close()
}

Expand Down

0 comments on commit 3da6db5

Please sign in to comment.