21 lines
381 B
Python
21 lines
381 B
Python
"""Main CLI entry point."""
|
|
|
|
import sys
|
|
|
|
from loglens.cli.commands import main
|
|
|
|
|
|
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())
|