Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cm-cli.py :specify commit ID /tag or branch when installing nodes and add 'exit-on-fail' parameter to control failure behavior #1367

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

VitoChenLY
Copy link

@VitoChenLY VitoChenLY commented Dec 24, 2024

  • Details:

  • The @@ delimiter allows users to specify a specific commit ID, tag, or branch for the node installation.

  • This feature enhances flexibility by enabling users to install nodes from specific versions of a repository.

  • Add 'exit-on-fail' parameter to control failure behavior

  • Example:

  • Install a node from a specific branch:

    python3 cm-cli.py install [email protected]:evanspearman/ComfyMath.git@@main
    
  • Install a node from a specific tag:

    python3 cm-cli.py install https://github.com/Nourepide/ComfyUI-Allor.git@@v1.0.0
    
  • Install a node from a specific commit ID:

    python3 cm-cli.py install [email protected]:evanspearman/ComfyMath.git@@2ee689
    
  • The exit_on_fail parameter determines whether the process should exit when an action fails.

     python3 cm-cli.py install --exit-on-fail [email protected]:evanspearman/ComfyMath.git@@rag https://github.com/Nourepide/ComfyUI-Allor.git@@2ee689
    
  • Impact:
    This change improves the usability of the cm-cli.py script by allowing users to install nodes from specific versions of repositories, rather than always using the default branch. Parameter '--exit-on-fail' enhances the flexibility of the cm-cli.py by allowing users to control the behavior when an action fails, without forcing an immediate exit.

@VitoChenLY VitoChenLY changed the title Add the ability to specify commit ID /tag or branch when installing nodes. cm-cli.py :specify commit ID /tag or branch when installing nodes and add 'exit-on-fail' parameter to control failure behavior Dec 24, 2024
@ltdrdata
Copy link
Owner

Please base the feature implementation on feat/cnr branch.
The structure of the main branch will change completely once feat/cnr is merged, so avoid adding new features to main as much as possible.

@VitoChenLY
Copy link
Author

VitoChenLY commented Dec 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants