mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-30 23:02:50 +00:00
refactor: remove CLI shim from crewai package
The backward-compat shim is unnecessary — nothing imports from crewai.cli.cli and the entry point lives in crewai-cli now.
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
"""Backward-compatibility shim.
|
||||
|
||||
The CLI has moved to the ``crewai-cli`` package. This module re-exports the
|
||||
Click group so that ``python -m crewai.cli.cli`` or direct imports continue to
|
||||
work when both packages are installed.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
try:
|
||||
from crewai_cli.cli import crewai
|
||||
except ImportError:
|
||||
import click
|
||||
|
||||
@click.group()
|
||||
def crewai() -> None:
|
||||
"""Top-level command group for crewai."""
|
||||
|
||||
@crewai.command()
|
||||
def _missing() -> None:
|
||||
click.secho(
|
||||
"The crewai CLI has moved to the crewai-cli package.\n"
|
||||
"Install it with: pip install crewai-cli (or pip install crewai[cli])",
|
||||
fg="red",
|
||||
)
|
||||
raise SystemExit(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
crewai()
|
||||
Reference in New Issue
Block a user