Skip to content
  • bryanl's avatar
    Add JSON format to table printer · 8ccd01da
    bryanl authored
    
    
    This PR adds JSON output to the existing table printer and updates all
    actions which use the table printer.
    
    JSON tables are printed out like:
    
    ```json
    {
      "kind": "moduleList",
      "data": [
        {"module": "/"},
        {"module": "a"},
        {"module": "a.b"}
      ]
    }
    ```
    
    Where:
    
    * `kind` is the kind of data in the table
    * `data` contains the table rows matched to the header
    
    Fixes #693
    
    Signed-off-by: default avatarbryanl <bryanliles@gmail.com>
    8ccd01da