Files
loglens-cli/loglens/cli/main.py
7000pctAUTO 7748620db1
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
Add CLI commands and main entry point
2026-02-02 08:01:17 +00:00

21 lines
381 B
Python

"""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())