File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
comfy_cli/command/custom_nodes Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments