fix(cli): restore parity with main

This commit is contained in:
Greyson Lalonde
2026-05-05 04:35:26 +08:00
parent 778130cfc7
commit 48fa7dcc9b
9 changed files with 40 additions and 19 deletions

View File

@@ -2,6 +2,7 @@ from pathlib import Path
import shutil
import click
from crewai.telemetry import Telemetry
def create_flow(name: str) -> None:
@@ -11,6 +12,9 @@ def create_flow(name: str) -> None:
click.secho(f"Creating flow {folder_name}...", fg="green", bold=True)
telemetry = Telemetry()
telemetry.flow_creation_span(class_name)
project_root = Path(folder_name)
if project_root.exists():
click.secho(f"Error: Folder {folder_name} already exists.", fg="red")