debricked / cli

Debricked's command line interface. It brings open source security, compliance and health to your project via the command prompt.
MIT License
19 stars 8 forks source link

Scan command writejson #193

Closed psmf22 closed 4 months ago

psmf22 commented 4 months ago

added parameter --write-json to scan command added a clause to dump the result api reply to the current working directory in result.json

psmf22 commented 4 months ago

The lint error is fixed but the test is failing because of an unexpected character in the output. Since I copied the basic test structure from the TestScan method that is probably affected as well. Can i just adjust the assertions or is that something that should be looked into?

4ernovm commented 4 months ago

The lint error is fixed but the test is failing because of an unexpected character in the output. Since I copied the basic test structure from the TestScan method that is probably affected as well. Can i just adjust the assertions or is that something that should be looked into?

really weird case. but this test case is passing if I remove package.json from assertion here https://github.com/debricked/cli/pull/193/files#diff-c62bf37f4ed4361740b06f5208e8da365648689558611632638a3280868a45c8R179

otherwise LGTM