INNER CODE UNIT · Python
init
416rehman/DeepZero · src/deepzero/cli.py:512
def init(name: str):
"""scaffold a new pipeline directory"""
pipeline_dir = Path.cwd() / "pipelines" / name
if pipeline_dir.exists():
console.print(f"[red]pipeline directory already exists: {pipeline_dir}[/]")
return
pipeline_dir.mkdir(parents=True)
yaml_content = f"""name: {name}
description: custom analysis pipeline
# model: openai/gpt-4o
settings:
work_dir: work
max_workers: 4