You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some CLI tools, including docker, provide a command line option for the user to specify exactly in what form they would like to receive the tool's output.
This is incredibly useful, as it allows users to hand pick which fields they are interested in, and it allows users to consume data using formats that the developers haven't yet considered or implemented.
For example, users could get CSV data out of the tool without us having to create an explicit output option for CSV:
Go makes this really easy with its built-in template functionality. Given the user-specified template string and the struct from which the data comes, it's trivial to loop through structs in a collection and output text in the format the user wants.
Note: This output feature can apply equally to other tools besides syft, but this is just a place to start.
This issue is related to anchore/grype#42, but takes a different, more generalized approach. Both approaches might be desired, and they wouldn't inherently conflict with each other.
The text was updated successfully, but these errors were encountered:
I'd like us to move forward on this now. But one update from the description — let's make sure to implement this functionality so that it's exactly the same experience for users as Grype's templating functionality, which is documented here: https://github.com/anchore/grype#using-templates
Some CLI tools, including
docker
, provide a command line option for the user to specify exactly in what form they would like to receive the tool's output.This is incredibly useful, as it allows users to hand pick which fields they are interested in, and it allows users to consume data using formats that the developers haven't yet considered or implemented.
For example, users could get CSV data out of the tool without us having to create an explicit output option for CSV:
Go makes this really easy with its built-in template functionality. Given the user-specified template string and the struct from which the data comes, it's trivial to loop through structs in a collection and output text in the format the user wants.
Note: This output feature can apply equally to other tools besides syft, but this is just a place to start.
This issue is related to anchore/grype#42, but takes a different, more generalized approach. Both approaches might be desired, and they wouldn't inherently conflict with each other.
The text was updated successfully, but these errors were encountered: