Detect if run is a flow and kick it off properly

This commit is contained in:
Mike Plachta
2025-02-17 17:32:16 -08:00
parent 1b488b6da7
commit 8c1add1013

View File

@@ -26,6 +26,9 @@ def run_crew() -> None:
fg="red",
)
if pyproject_data.get("tool", {}).get("crewai", {}).get("type") == "flow":
command = ["uv", "run", "kickoff"]
try:
subprocess.run(command, capture_output=False, text=True, check=True)