--json
commit2debf2aee1a52c63d28c7bbec9de0d045a496da0
authorEdwin Smith <smith@meta.com>
Tue, 13 Dec 2022 15:07:27 +0000 (13 07:07 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 13 Dec 2022 15:07:27 +0000 (13 07:07 -0800)
tree4d4a3f44745706c4a241ab22ca583b393a5ce53d
parent3bd77510caf08e58458702bf463848cd26ea7c22
--json

Summary:
Add a new `--json` flag that behaves like `hh --json`; in this mode, stdout will be
a json blob with errors:

  {
    errors: ...
    passed: false
  }

this is a subset of `hh` output, which has other fields like `version` and `last_recheck`
with many hh-specific fields.

Reviewed By: bobrenjc93

Differential Revision: D41917506

fbshipit-source-id: 2c3b1b8a0f6d96d513a13e24a8568ac35246447a
hphp/hack/src/errors/cargo/errors/Cargo.toml [new file with mode: 0644]
hphp/hack/src/errors/errors.rs [new file with mode: 0644]
hphp/hack/src/errors/user_error.rs [new file with mode: 0644]