INNER CODE UNIT · Python
run
F-R-L/forge-film · forge/cli.py:16
def run(
story_file: Path = typer.Argument(..., help="Path to story text file"),
scenes: int = typer.Option(6, help="Number of scenes"),
workers: int = typer.Option(0, help="Parallel workers (0 = use forge.yaml/default)"),
backend: str = typer.Option("", help="Override all backends: mock|kling|cogvideo"),
output: Path = typer.Option(Path("./output"), help="Output directory"),
no_validate: bool = typer.Option(False, "--no-validate", help="Skip VLM validation"),
config: Path = typer.Option(Path("forge.yaml"), help="Path to forge.yaml config"),
):
"""Generate a film from a story file using multi-model DAG + CPM scheduling."""
asyncio.run(_run(story_file, scenes, workers, backend, str(output), no_validate, config))
async def _run(
story_file: Path,
num_scenes: int,
workers: int,
backend_override: str,