From 7748620db1a187fe178126e8c58e39af41bb6e87 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Mon, 2 Feb 2026 08:01:17 +0000 Subject: [PATCH] Add CLI commands and main entry point --- loglens/cli/main.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 loglens/cli/main.py diff --git a/loglens/cli/main.py b/loglens/cli/main.py new file mode 100644 index 0000000..fd16db7 --- /dev/null +++ b/loglens/cli/main.py @@ -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())