from @unified-product-graph/cli · Graph
upg fmt
Rewrite .upg files to canonical form (byte-stable, diff-friendly).
Usage
upg fmt [files...] [options]Arguments
[files...]- Paths to .upg files. Defaults to the discovered .upg file.
Options
--check- Do not write; exit non-zero if any file is not already canonical. For CI.
Examples
Format the discovered .upg file in place
upg fmtFormat every graph in the workspace
upg fmt .upg/*.upgCI gate: fail if any file is not canonical
upg fmt --check .upg/*.upgOutput
1 file(s) not in canonical form: .upg/threadline.upg Run `upg fmt` to fix.