CycloneDX / cyclonedx-dotnet

Creates CycloneDX Software Bill of Materials (SBOM) from .NET Projects
https://cyclonedx.org/
Apache License 2.0
167 stars 78 forks source link

feat: Add automatic detection of output format from filename #891

Open mtsfoni opened 4 days ago

mtsfoni commented 4 days ago

Description

This PR adds a feature to automatically detect the output format based on the provided output filename's extension. If the -fn (or --filename) option is set but --json or the future --bom-format option is not set, the format is derived from the file extension. Explicit parameters --json or --bom-format will take precedence if set.

Changes

Testing

Related Issues

Please review the changes and provide feedback.