Add format-in-place mode
commit8032886f984db3dc0cf06aa591c636008c9f318e
authorJake Bailey <jakebailey@fb.com>
Thu, 23 Feb 2017 22:31:42 +0000 (23 14:31 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 23 Feb 2017 22:52:09 +0000 (23 14:52 -0800)
treed0bf81e444f1e424507a1e9ddec2c7846dbe9a8e
parent517bb2abcb541066aa269fe7f5c18b44a1cc4878
Add format-in-place mode

Summary: Add --in-place / -i option, which writes the formatted result to the file it was read from.

Reviewed By: eshrews

Differential Revision: D4596139

fbshipit-source-id: b3c43fd096788a8ff371f2add7ec52aa7a353197
hphp/hack/src/hackfmt.ml