Add script/bqetl for run cli without install (#1448)
This commit is contained in:
Родитель
9d7a566e1c
Коммит
9e441fac96
|
@ -14,7 +14,7 @@ from .._version import __version__
|
|||
from ..stripe import stripe_
|
||||
|
||||
|
||||
def cli():
|
||||
def cli(prog_name=None):
|
||||
"""Create the bigquery-etl CLI."""
|
||||
commands = {
|
||||
"query": query,
|
||||
|
@ -37,7 +37,7 @@ def cli():
|
|||
"ignore", "Your application has authenticated using end user credentials"
|
||||
)
|
||||
|
||||
group()
|
||||
group(prog_name=prog_name)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec python3 -c "from bigquery_etl.cli import cli; cli(prog_name='$0')" "$@"
|
Загрузка…
Ссылка в новой задаче