-
Notifications
You must be signed in to change notification settings - Fork 628
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
Allow specific versions of formats to be specified #1543
Conversation
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
cmd.Flags().StringArrayVarP(&o.Output, "output", "o", FormatAliases(table.ID), | ||
fmt.Sprintf("report output format, options=%v", FormatAliases(syft.FormatIDs()...))) | ||
cmd.Flags().StringArrayVarP(&o.Output, "output", "o", []string{string(table.ID)}, | ||
fmt.Sprintf("report output format, options=%v", formats.AllIDs())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lingering question: should this function (FormatAliases
) still exist to customize the format output to the client?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as long as the cli package has all existing cases covered I think it's alright to remove this
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice addition 🙌
Signed-off-by: Keith Zantow <[email protected]>
This PR adds support for including a version number along with formats, for example:
[email protected]
orsyft@6
.Fixes #1519