henriblancke/dbt-formatter

Add binary

Closed this issue · 1 comments

A nice to have is a binary so this package can easily be ran on files using a runner such as pre-commit or https://github.com/okonet/lint-staged.

e.g.

npx dbt-formatter ./path-to-some/file.sql --spaces 2 --indent 2 --sql redshift

Added in #14 (experimental) and part of v1.2.0 release