Initial commit: Add Local API Docs Search CLI tool
Some checks failed
CI / test (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-02-03 01:18:57 +00:00
parent 07fa1482cc
commit 942ec8f614

24
src/main.py Normal file
View File

@@ -0,0 +1,24 @@
"""CLI entry point."""
import sys
from pathlib import Path
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()