Skip to content

Nginx configuration formatter, inspired by gofmt

License

Notifications You must be signed in to change notification settings

nginx-modules/nginxfmt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginxfmt

Takes Nginx configuration files and run them through go-crossplane.

This program is heavily inspired by gofmt and re-uses a lot of code and style from that program.

Usage

nginxfmt [flags] [path ...]

Flags are:

  • -l Do not print reformatted configuration to standard output. If a file's formatting is different from nginxfmt's, print its name to standard output.
  • -w Do not print reformatted configuration to standard output. If a file's formatting is different from nginxfmt's, overwrite it with nginxfmt's version.

The paths can be a list of file names and/or directories. If a directory is given, it is assumed all files in the directory are Nginx configuration files for processing.

About

Nginx configuration formatter, inspired by gofmt

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%