chore(backend): refactor mono cli file into package
This commit is contained in:
17
backend/cli/__main__.py
Normal file
17
backend/cli/__main__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""
|
||||
Main entry point for the CLI package.
|
||||
Allows running with: python -m backend.cli
|
||||
"""
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# Add the project root to sys.path for backend imports
|
||||
project_root = Path(__file__).parent.parent.parent
|
||||
sys.path.insert(0, str(project_root))
|
||||
|
||||
# Import the main function from within the package
|
||||
from .main import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Reference in New Issue
Block a user