nginxinc / crossplane

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

Formattig is not working #56

Closed Taymindis closed 5 years ago

Taymindis commented 5 years ago
crossplane format -o new.conf -t /etc/nginx/nginx.conf
Traceback (most recent call last):
  File "/usr/local/bin/crossplane", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/crossplane/__main__.py", line 228, in main
    func(**kwargs)
  File "/usr/local/lib/python3.7/site-packages/crossplane/__main__.py", line 130, in format
    output = build_file(parsed, indent, tabs) + '\n'
NameError: name 'build_file' is not defined
aluttik commented 5 years ago

Ah shoot, I'm on it.

aluttik commented 5 years ago

@Taymindis I just pushed a fix and uploaded it to PyPI. The format command should work now in the current version (0.4.14). Try updating with pip install -U crossplane.

Taymindis commented 5 years ago

It works now! Great!