For example, executing
go run main.go diff syft.alpine.3.18.6.cdx.json syft.alpine.3.19.1.cdx.json
will generate a comparison between two versions of a Syft Alpine image. The output will present the version drift of packages, showing which packages have been added, removed, or changed between the two versions.
This PR introduces a new diff command to demonstrate the functionality of the NodeList API.
Note: PR uses the protobom Suggested Diff API - https://github.com/bom-squad/protobom/pull/173
For example, executing
go run main.go diff syft.alpine.3.18.6.cdx.json syft.alpine.3.19.1.cdx.json
will generate a comparison between two versions of a Syft Alpine image. The output will present the version drift of packages, showing which packages have been added, removed, or changed between the two versions.Here's a sample output: