Skip to content

Commit

Permalink
feat: Add __main__.py for running the package from the command line
Browse files Browse the repository at this point in the history
  • Loading branch information
derrix060 committed Jun 28, 2024
1 parent eec67df commit d2157f1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions awslimitchecker/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# The idea of this file is to enable running the package with
# `python -m awslimitchecker` or `python -m awslimitchecker [args]`.
# This enables debugging the package when installed in editable mode
# (`pip install -e .`) and running the package from the command line.

import sys

from . import runner


def main(args=None):
if args is None:
args = sys.argv[1:]
# Parse arguments and run your package's main functionality
print("Running awslimitchecker with arguments:", args)
runner.console_entry_point()


if __name__ == "__main__":
main()

0 comments on commit d2157f1

Please sign in to comment.