Note that caddy fmt doesn't support heredocs

The lexer and formatter are separate, and the additional work is a
significant undertaking.

https://github.com/caddyserver/caddy/issues/5930#issuecomment-1797709061
This commit is contained in:
David Baynard 2023-11-07 21:28:25 +00:00
parent d0b160b182
commit d323766360
2 changed files with 7 additions and 0 deletions

View file

@ -181,6 +181,10 @@ The closing marker can be indented, which causes every line of text to have that
Additional tokens may follow the closing marker as arguments to the directive (such as in the example above, the status code `200`).
<aside class="advice">
The [`caddy fmt`](/docs/command-line#caddy-fmt) command [does not support](https://github.com/caddyserver/caddy/issues/5930#issuecomment-1797709061) heredocs.
</aside>
## Global options

View file

@ -234,6 +234,9 @@ Formats or prettifies a Caddyfile, then exits. The result is printed to stdout u
`--diff` causes the output to be compared against the input, and lines will be prefixed with `-` and `+` where they differ. Note that unchanges lines are prefixed with two spaces for alignment, and that this is not a valid patch format; it's just meant as a visual tool.
<aside class="advice">
The `caddy fmt` command [does not support](https://github.com/caddyserver/caddy/issues/5930#issuecomment-1797709061) [heredocs](/docs/caddyfile/concepts#heredocs).
</aside>
### `caddy hash-password`