nginxfmt

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL