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
+7
View File
@@ -0,0 +1,7 @@
# Trailing-comma style — comma at the end of each line rather than the start.
# Matches the SQL style common in tools like dbt and some BI platforms.
keyword_case: upper
ident_case: lower
type_case: lower
commas: trailing