shivasurya / code-pathfinder

Code Pathfinder, the open-source alternative to GitHub CodeQL. Built for advanced structural search, derive insights, find vulnerabilities in code.
https://codepathfinder.dev
GNU Affero General Public License v3.0
35 stars 6 forks source link

Support for Output file format flag #27

Closed shivasurya closed 5 months ago

shivasurya commented 5 months ago

closes: #22

Description

I have introduced --output-file format flag so that the results are stored in output file as json array.

Example

pathfinder --project /Users/shiva/src/android --output json 
--query "FIND class_declaration WHERE visibility = 'public'" --output-file result.json