interlynk-io / sbomqs

SBOM quality score - Quality metrics for your sboms
Apache License 2.0
158 stars 20 forks source link

refractor toUserCmd function #255

Closed viveksahu26 closed 2 months ago

viveksahu26 commented 3 months ago

While toUserCmd serves a single purpose – feeding data to engParams – it handles various user-provided arguments and options. This complexity made writing comprehensive test cases challenging.

Therefore, I opted to refactor the code with structs and interfaces. This new approach not only promotes better organization but also allows the code to handle errors more effectively if they arise.