cyclonedx-dotnet icon indicating copy to clipboard operation
cyclonedx-dotnet copied to clipboard

Detect output format from output filename if provided

Open mtsfoni opened this issue 2 years ago • 1 comments

mtsfoni avatar Dec 28 '23 16:12 mtsfoni

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

mtsfoni avatar Jan 01 '24 13:01 mtsfoni