akua fmt
Shipped
Format KCL and Rego sources in place.
akua fmt [path] [flags]
Uses embedded kcl fmt for .k files and embedded opa fmt for .rego files. Idempotent; safe to run in CI.
Flags
| flag | description |
|---|---|
--check | exit 1 if anything would change (CI gate); do not modify files |
--diff | print unified diff of changes without applying |
Exit codes
0 success, 1 formatting needed (with --check), 2 parse error.