Add CLI commands and main entry point
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-02-02 08:01:17 +00:00
parent 6164ec6236
commit 7748620db1

20
loglens/cli/main.py Normal file
View File

@@ -0,0 +1,20 @@
"""Main CLI entry point."""
from loglens.cli.commands import main
import sys
def main_cli() -> int:
"""Main entry point for LogLens CLI."""
try:
return main(standalone_mode=False)
except SystemExit:
raise
except Exception as e:
print(f"Error: {e}", file=sys.stderr)
return 1
if __name__ == "__main__":
sys.exit(main_cli())