adding initial CLI support

This commit is contained in:
João Moura
2024-03-11 16:37:32 -03:00
parent 4503f1b9c1
commit 0a9404bb46
24 changed files with 417 additions and 7 deletions

19
src/crewai/cli/cli.py Normal file
View File

@@ -0,0 +1,19 @@
import click
from .create_crew import create_crew
@click.group()
def crewai():
"""Top-level command group for crewai."""
@crewai.command()
@click.argument("project_name")
def create(project_name):
"""Create a new crew."""
create_crew(project_name)
if __name__ == "__main__":
crewai()