cyclonedx-dotnet
cyclonedx-dotnet copied to clipboard
Detect output format from output filename if provided
Basically, if -fn is set but --json or potential future --bom-format is not set, then we read the ending of the filename and set -json/--bom-format accordingly. If it conflicts, the explicit parameters --json/--bom-format precede.
Supported endings could be:
- .xml
- .json
- .proto
- .pb
- .bin