assemble sboms using primary comp sbom file
closes https://github.com/interlynk-io/sbomasm/issues/128
This PR follows second approach as described here.
This PR introduces a new feature that enhances the sbomasm assemble command by adding support for the --primaryCompFile flag. This feature enables users to specify a primary component SBOM (primaryCompFile) as the base for generating the final assembled SBOM.
For testing, one can use below files:
$ go run main.go assemble --primaryCompFile sbomex-cdx.json -o hierar3-pc-final.cdx.json sbomqs-cdx.json sbomgr-cdx.json
sbomex-cdx.json sbomgr-cdx.json sbomqs-cdx.json hierar3-pc-final.cdx.json
LGTM
Refer here for README: https://github.com/viveksahu26/sbomasm/blob/feat/assemble_via_pc_file/docs/assemble/README.md