// Present creates a CycloneDX-based reporting
Present creates a CycloneDX-based reporting
// Present creates a CycloneDX - based reporting
func (pres *Presenter) Present(output io.Writer) error {
	bom, err := NewDocument(pres.packages, pres.results, pres.srcMetadata, pres.metadataProvider)
	if err != nil {
		return err
	}
	encoder := cyclonedx.NewBOMEncoder(output, pres.format)
	encoder.SetPretty(true)
	err = encoder.Encode(bom)
	if err != nil {
		return err
	}
	return err
}
func ( pres * Presenter ) Present ( output io . Writer ) error { bom , err := NewDocument ( pres . packages , pres . results , pres . srcMetadata , pres . metadataProvider ) if err != nil { return err } encoder := cyclonedx . NewBOMEncoder ( output , pres . format ) encoder . SetPretty ( true ) err = encoder . Encode ( bom ) if err != nil { return err } return err }
Present creates a CycloneDX-based reporting
Present creates a CycloneDX - based reporting