diff --git a/pytransifex/__main__.py b/pytransifex/__main__.py new file mode 100644 index 0000000..b6636bf --- /dev/null +++ b/pytransifex/__main__.py @@ -0,0 +1,4 @@ +from pytransifex.cli import cli + +if __name__ == "__main__": + cli() diff --git a/pytransifex/cli.py b/pytransifex/cli.py index d8db4e3..f9e45da 100644 --- a/pytransifex/cli.py +++ b/pytransifex/cli.py @@ -129,7 +129,3 @@ def pull(output_directory: str | Path | None, only_lang: str | None): finally: click.echo(reply) settings.to_disk() - - -if __name__ == "__main__": - cli()