Thanks to visit codestin.com
Credit goes to github.com

Skip to content

add an option to output the report into a file rather than redirecting the output #207

@wagde-orca

Description

@wagde-orca

What would you like to be added:
I would like to have an option to output the report (json) into a file with an option in the commad line like
grype "dir:/xxx" -o json -f report.json
Why is this needed:
it's easier with this option to integrate grype in python code rather than running and getting the output with subprocess
Additional context:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions