nginxinc / crossplane

Quick and reliable way to convert NGINX configurations into JSON and back.
Apache License 2.0
717 stars 86 forks source link

feat: add ability to format in place #61

Closed josegonzalez closed 5 years ago

josegonzalez commented 5 years ago

It would be great to have an in-place formatter, such that we don't need to write the content back out to another file (temporary or not).

aluttik commented 5 years ago

After this change you should be able to write back to the input file using --out, so you can do in-place formatting.

Ex.

crossplane format nginx.conf -o nginx.conf
aluttik commented 5 years ago

This changes has been included in crossplane 0.5.2 which is now available on PyPI :+1:

josegonzalez commented 5 years ago

Thank you!