Add CLI commands and main entry point
Some checks failed
Some checks failed
This commit is contained in:
20
loglens/cli/main.py
Normal file
20
loglens/cli/main.py
Normal 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())
|
||||
Reference in New Issue
Block a user