Add --check option to pgindent

From: "Tristan Partin" <tristan(at)neon(dot)tech>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Add --check option to pgindent
Date: 2023-12-12 00:09:21
Message-ID: CXLX2XYTH9S6.140SC6Y61VD88@neon.tech
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Not sold on the name, but --check is a combination of --silent-diff and
--show-diff. I envision --check mostly being used in CI environments.
I recently came across a situation where this behavior would have been
useful. Without --check, you're left to capture the output of
--show-diff and exit 2 if the output isn't empty by yourself.

--
Tristan Partin
Neon (https://neon.tech)

Attachment Content-Type Size
v1-0001-Add-check-option-to-pgindent.patch text/x-patch 2.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2023-12-12 00:21:36 Re: Add --check option to pgindent
Previous Message Greg Sabino Mullane 2023-12-11 21:53:01 Adding comments to help understand psql hidden queries