logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

caddy-fmt - Formats a Caddyfile

Description

       Formats the Caddyfile by adding proper indentation and spaces to improve human readability. It prints the
       result to stdout.

       If  --overwrite  is specified, the output will be written to the config file directly instead of printing
       it.

       If --diff is specified, the output will be compared against the input, and lines will  be  prefixed  with
       '-'  and '+' where they differ. Note that unchanged lines are prefixed with two spaces for alignment, and
       that this is not a valid patch format.

       If you wish you use stdin instead of a regular file, use - as the path.  When  reading  from  stdin,  the
       --overwrite flag has no effect: the result is always printed to stdout.

History

       10-May-2025 Auto generated by spf13/cobra

Auto generated by spf13/cobra                       May 2025                                            Caddy(8)

Name

       caddy-fmt - Formats a Caddyfile

Options

--diff[=false]      Print the differences between the input file and the formatted output

       -h, --help[=false]      help for fmt

       --overwrite[=false]      Overwrite the input file with the results

See Also

caddy(8)

Synopsis

caddyfmt[flags]

See Also