Skip to content

Gate output when in json mode#119

Merged
mattyjones merged 1 commit intoN0MoreSecr3ts:masterfrom
DocEmmetBrown:fix/json_output_localscan
Jun 22, 2022
Merged

Gate output when in json mode#119
mattyjones merged 1 commit intoN0MoreSecr3ts:masterfrom
DocEmmetBrown:fix/json_output_localscan

Conversation

@DocEmmetBrown
Copy link
Copy Markdown
Contributor

When running a local scan with wraith scanLocalPath --local-paths $HOME/some/random/dir/ --scan-tests --json --signature-path "$HOME/.wraith/signatures", the output was :

Enumerating Paths
{
  properly formed json
}
Webserver:  false

In order to be able to properly deal with the command output with a regular JSON parser, and to not have to pre-process it, It felt interesting to prevent the first and last output lines to be printed when outputting in CSV or JSON format.

@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit bd66229 and detected 0 issues on this pull request.

View more on Code Climate.

@mattyjones
Copy link
Copy Markdown
Collaborator

mattyjones commented Jun 22, 2022

@DocEmmetBrown Thanks for this. No idea how I missed it before!

@mattyjones mattyjones merged commit 57fea83 into N0MoreSecr3ts:master Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants