Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor pathfinder cli to support cobra 🐍 cli format #104

Merged
merged 7 commits into from
Aug 24, 2024

Conversation

shivasurya
Copy link
Owner

closes #103

This new revamp contains commands such as

  • pathfinder query --arguments : to execute individual queries or query files (see feature(query): introduce to execute queries from CQL file 🚀  #102)
  • pathfinder scan --arguments: to scan whole projects with defined ruleset (group of cql query files)
  • pathfinder ci --arguments: to support scanning in CI mode and report errors with config
  • pathfinder version: to support printing exact version and commit tag info

additionally --disable-metrics will be added to root command to disable posthog analytics (see #101)

@shivasurya shivasurya added the enhancement New feature or request label Aug 24, 2024
@shivasurya shivasurya self-assigned this Aug 24, 2024
Copy link

codecov bot commented Aug 24, 2024

Codecov Report

Attention: Patch coverage is 64.82412% with 70 lines in your changes missing coverage. Please review.

Project coverage is 40.68%. Comparing base (ab16095) to head (807ca07).
Report is 1 commits behind head on main.

Files Patch % Lines
sourcecode-parser/cmd/query.go 56.89% 44 Missing and 6 partials ⚠️
sourcecode-parser/cmd/scan.go 72.22% 10 Missing ⚠️
sourcecode-parser/graph/construct.go 38.46% 8 Missing ⚠️
sourcecode-parser/main.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #104       +/-   ##
===========================================
- Coverage   52.95%   40.68%   -12.28%     
===========================================
  Files          10       10               
  Lines        2281      762     -1519     
===========================================
- Hits         1208      310      -898     
+ Misses       1011      436      -575     
+ Partials       62       16       -46     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shivasurya shivasurya merged commit d2c3468 into main Aug 24, 2024
3 of 4 checks passed
@shivasurya shivasurya deleted the shiva/revamp-command-structure branch August 24, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revamp pathfinder cli to spf13/cobra based cli subcommands
1 participant