feat(cmd): add unified diff output option for formatting

* Implemented `-d`/`--diff` flag to print unified diffs.
* Added `unifiedDiff` function for generating diffs.
* Config discovery now merges fields from `.pgtidy.yaml`.
This commit is contained in:
2026-06-27 19:32:57 +02:00
parent d4e6102932
commit 932c83dbad
10 changed files with 345 additions and 11 deletions
+8
View File
@@ -0,0 +1,8 @@
# Preserve-case style — no casing changes applied.
# Useful for codebases with mixed-convention legacy SQL that you want to
# reformat structurally (indentation, commas) without touching casing.
keyword_case: preserve
ident_case: preserve
type_case: preserve
commas: leading