19 строки
332 B
Python
19 строки
332 B
Python
"""bigquery-etl CLI format command."""
|
|
|
|
import click
|
|
|
|
from bigquery_etl.format_sql.format import format as format_sql
|
|
|
|
|
|
@click.command(
|
|
help="Format SQL.",
|
|
)
|
|
@click.argument(
|
|
"path",
|
|
default="sql/",
|
|
type=click.Path(file_okay=True),
|
|
)
|
|
def format(path):
|
|
"""Apply formatting to SQL files."""
|
|
format_sql([path])
|