From d05c7342c67ca83ae912a64d9e39f328d38e0dde Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 12 Oct 2025 17:44:34 +0300 Subject: Initial commit --- pylogsentinel/__main__.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pylogsentinel/__main__.py (limited to 'pylogsentinel/__main__.py') diff --git a/pylogsentinel/__main__.py b/pylogsentinel/__main__.py new file mode 100644 index 0000000..0cb6bcc --- /dev/null +++ b/pylogsentinel/__main__.py @@ -0,0 +1,24 @@ +""" +Module entry-point for `python -m pylogsentinel`. + +This delegates to `pylogsentinel.core.main` so that: + python -m pylogsentinel [...] +behaves the same as invoking the installed console script +(or calling pylogsentinel.core.main() directly). + +The core.main function already handles argument parsing, configuration +loading, locking, and execution flow. +""" + +from __future__ import annotations + +from .core import main as core_main + + +def main() -> int: + """Thin wrapper calling the real core main function.""" + return core_main() + + +if __name__ == "__main__": # pragma: no cover + raise SystemExit(main()) -- cgit v1.3