diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-10-12 17:44:34 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-10-12 18:12:00 +0300 |
| commit | d05c7342c67ca83ae912a64d9e39f328d38e0dde (patch) | |
| tree | a1909545118bd405bd556bd9597c1258e060844f /pylogsentinel/__main__.py | |
Initial commit
Diffstat (limited to 'pylogsentinel/__main__.py')
| -rw-r--r-- | pylogsentinel/__main__.py | 24 |
1 files changed, 24 insertions, 0 deletions
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()) |
