Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add '-' option to write report to stdout #1341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

risto-liftoff
Copy link

Description:

When testing out a tool like gitleaks, I find it useful being able to send output to stdout. This PR adds - as an option to use for --report-path to write to stdout. It's a convention that - signifies stdout (or stdin depending on the context).

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
    No, I believe the existing tests in report_test.go provide sufficient coverage.
  • Have you lint your code locally prior to submission?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant