shivasurya / code-pathfinder

Code Pathfinder, the open-source alternative to CodeQL. Designed for precise flow analysis and advanced structural search, it identifies vulnerabilities in source code.
https://codepathfinder.dev/
GNU Affero General Public License v3.0
32 stars 6 forks source link

Added support for output format as json #17

Closed shivasurya closed 4 months ago

shivasurya commented 4 months ago

Add support for output format as json and query to execute directly.

Example:

➜  sourcecode-parser git:(shiva/output-flag) ✗ go run . --help                                                                                                       
Usage of /var/folders/0f/8t9fxdr92nj6vcxgv1bqxz540000gp/T/go-build263825568/b001/exe/sourcecode-parser:
  -output string
        Output format: json
  -project string
        Project to analyze
  -query string
        Query to execute