markri / wp-sec

Wp-sec is an exentsion for wp-cli which checks for Wordpress CVE security issues at wpvulndb.com
MIT License
84 stars 8 forks source link

FIX use type for JSON output #4

Closed emaV closed 7 years ago

emaV commented 7 years ago

A quick patch to support the --type switch on JSON output.

markri commented 7 years ago

Thnx for yet another contribution :+1:

emaV commented 7 years ago

Indeed I'm wondering if would be even better to add the plugin version on the output as well.

{
  "plugins": {
    "count": N,
    "details": [
      {
         "plugin": "whatever",
         "version": "x.y.z",
         "count": N,
         "details": [
           {
             "fixed_in": "i.j.k"
...

Something you get already from the command line indeed.