mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 22:12:28 +01:00
Add CycloneDX presenter (#157)
* add CycloneDX presenter + BOM Descriptor extension Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add docstrings to cyclonedx presenter Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ func setGlobalCliOptions() {
|
||||
// output & formatting options
|
||||
flag = "output"
|
||||
rootCmd.Flags().StringP(
|
||||
flag, "o", presenter.TablePresenter.String(),
|
||||
flag, "o", string(presenter.TablePresenter),
|
||||
fmt.Sprintf("report output formatter, options=%v", presenter.Options),
|
||||
)
|
||||
if err := viper.BindPFlag(flag, rootCmd.Flags().Lookup(flag)); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user