Files
local-api-docs-search/src/main.py
7000pctAUTO e3037ad625
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 / build (push) Has been cancelled
Add source files (main, cli, indexer modules)
2026-02-03 02:36:40 +00:00

24 lines
431 B
Python

"""CLI entry point."""
import sys
def main():
"""Main entry point for the CLI."""
from src.cli.commands import cli
try:
cli.main(prog_name="api-docs")
except KeyboardInterrupt:
sys.exit(0)
except Exception as e:
import logging
logging.basicConfig(level=logging.ERROR)
print(f"Error: {e}", file=sys.stderr)
sys.exit(1)
if __name__ == "__main__":
main()