From 942ec8f614a3c267b72b32fa32728517170b0191 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Tue, 3 Feb 2026 01:18:57 +0000 Subject: [PATCH] Initial commit: Add Local API Docs Search CLI tool --- src/main.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/main.py diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..ee25b85 --- /dev/null +++ b/src/main.py @@ -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()