mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Add grammar compatibility option to the formatter (#1249)
This commit is contained in:
@@ -743,6 +743,16 @@ It returns a non-zero status code in case violations are found.
|
||||
|
||||
If the path is a directory, recursively looks for files with a `.pkl` extension, or files named `PklProject`.
|
||||
|
||||
==== Options
|
||||
|
||||
.--grammar-version
|
||||
[%collapsible]
|
||||
====
|
||||
Default: `2` (latest version) +
|
||||
Select the grammar compatibility version for the formatter.
|
||||
New versions are created for each backward incompatible grammar change.
|
||||
====
|
||||
|
||||
[[command-format-apply]]
|
||||
=== `pkl format apply`
|
||||
|
||||
@@ -760,6 +770,14 @@ If the path is a directory, recursively looks for files with a `.pkl` extension,
|
||||
Do not write the name of wrongly formatted files to stdout.
|
||||
====
|
||||
|
||||
.--grammar-version
|
||||
[%collapsible]
|
||||
====
|
||||
Default: `2` (latest version) +
|
||||
Select the grammar compatibility version for the formatter.
|
||||
New versions are created for each backward incompatible grammar change.
|
||||
====
|
||||
|
||||
[[common-options]]
|
||||
=== Common options
|
||||
|
||||
|
||||
Reference in New Issue
Block a user