#!/usr/bin/env python3 """ UnitForge CLI Entry Point This script provides a convenient way to run the UnitForge CLI tool without requiring installation via pip. """ import sys from pathlib import Path # Add the backend directory to the Python path script_dir = Path(__file__).parent backend_dir = script_dir / "backend" sys.path.insert(0, str(backend_dir)) try: from cli import cli except ImportError as e: print(f"Error importing CLI module: {e}", file=sys.stderr) print( "Make sure you're running this script from the unitforge directory.", file=sys.stderr, ) sys.exit(1) if __name__ == "__main__": cli()