Skip to content

Commit 03e0f37

Browse files
authored
feat: support --exit-on-fail for comfy node install command (#275)
1 parent 75bb752 commit 03e0f37

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

comfy_cli/command/custom_nodes/command.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,13 @@ def install(
401401
help="Use new fast dependency installer",
402402
),
403403
] = False,
404+
exit_on_fail: Annotated[
405+
bool,
406+
typer.Option(
407+
"--exit-on-fail",
408+
help="Exit on failure",
409+
),
410+
] = False,
404411
mode: str = typer.Option(
405412
None,
406413
help="[remote|local|cache]",
@@ -413,7 +420,12 @@ def install(
413420

414421
validate_mode(mode)
415422

416-
execute_cm_cli(["install"] + nodes, channel=channel, fast_deps=fast_deps, mode=mode)
423+
if exit_on_fail:
424+
cmd = ["install", "--exit-on-fail"] + nodes
425+
else:
426+
cmd = ["install"] + nodes
427+
428+
execute_cm_cli(cmd, channel=channel, fast_deps=fast_deps, mode=mode)
417429

418430

419431
@app.command(help="Reinstall custom nodes")

0 commit comments

Comments
 (0)