Skip to content

Commit

Permalink
Fix gcs-cli and pubsub-cli script definitions (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
relud authored Nov 1, 2024
1 parent 0e1db4c commit 76f3ab2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
5 changes: 0 additions & 5 deletions obs_common/gcs_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,5 @@ def upload(source, destination):
click.echo(f"Uploaded gs://{bucket_name}/{key}")


def main(argv=None):
argv = argv or []
gcs_group(argv)


if __name__ == "__main__":
gcs_group()
5 changes: 0 additions & 5 deletions obs_common/pubsub_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,5 @@ def pull(ctx, project_id, subscription_name, ack, max_messages):
subscriber.acknowledge(subscription=subscription_path, ack_ids=ack_ids)


def main(argv=None):
argv = argv or []
pubsub_group(argv)


if __name__ == "__main__":
pubsub_group()
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ dynamic = ["version"]
[project.scripts]
license-check = "obs_common.license_check:main"
service-status = "obs_common.service_status:main"
gcs-cli = "obs_common.gcs_cli:main"
pubsub-cli = "obs_common.pubsub_cli:main"
gcs-cli = "obs_common.gcs_cli:gcs_group"
pubsub-cli = "obs_common.pubsub_cli:pubsub_group"
sentry-wrap = "obs_common.sentry_wrap:cli_main"

[build-system]
Expand Down

0 comments on commit 76f3ab2

Please sign in to comment.