ITADN

Add option to not output the report

#752Opentuckerrc 创建于 2026-01-10
enhancement
T
tuckerrccommented
Can a new flag be added, such as `--no-report`, to skip the report? I want to use sqlfmt as an external formatter in DBeaver using the `sqlfmt -` command. However, sqlfmt adds the report to the output which prints it in the editor (I haven't found a way in DBeaver to route stderr to null). ## Behavior ``` $ cat query.sql | sqlfmt - select 1 1 file left unchanged. ``` ## Desired Behavior ``` $ cat query.sql | sqlfmt --no-report - select 1 ```
3 条评论