Skip to content

v0.5.0

Choose a tag to compare

@kx0101 kx0101 released this 21 Dec 15:31
· 8 commits to develop since this release
46c866c

Refactor CLI main logic to remove repetition and improve testability

  • ExitCodes
  • Introduced function variables (dryRun, convertNginxLogs, etc.) to enable easier testing and mocking
  • Added handleError helper to standardize error output and exit codes
  • Result output logic into outputResults and outputRulesJSON
  • Improved readability of main execution paths (runReplayMode, runCapture, runDryRun, runParseNginx)
  • Isolated baseline loading into loadBaseline helper
  • No functional changes; behavior and exit codes preserved