mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-09 22:24:23 +08:00
fix: cm-cli fix command
This commit is contained in:
parent
e98645caf2
commit
b3636c1217
@ -178,6 +178,7 @@ if not (len(sys.argv) == 2 and sys.argv[1] == 'save-snapshot') and len(sys.argv)
|
||||
f" save-snapshot\n"
|
||||
f" restore-snapshot <snapshot>\n"
|
||||
f" cli-only-mode [enable|disable]\n"
|
||||
f" restore-dependencies -- NOT YET\n"
|
||||
f" clear\n")
|
||||
exit(-1)
|
||||
|
||||
@ -456,6 +457,9 @@ elif op == 'save-snapshot':
|
||||
elif op == 'restore-snapshot':
|
||||
restore_snapshot(sys.argv[2])
|
||||
|
||||
elif op == 'restore-dependencies':
|
||||
print(f"TODO: NOT YET IMPLEMENTED")
|
||||
|
||||
elif op == 'clear':
|
||||
cancel()
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ sys.path.append(glob_path)
|
||||
import cm_global
|
||||
from manager_util import *
|
||||
|
||||
version = [2, 20]
|
||||
version = [2, 20, 1]
|
||||
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
|
||||
|
||||
comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
|
||||
@ -632,7 +632,7 @@ async def get_data_by_mode(mode, filename, channel_url=None):
|
||||
return json_obj
|
||||
|
||||
|
||||
def gitclone_fix(files):
|
||||
def gitclone_fix(files, instant_execution=False):
|
||||
print(f"Try fixing: {files}")
|
||||
for url in files:
|
||||
if not is_valid_url(url):
|
||||
@ -648,7 +648,7 @@ def gitclone_fix(files):
|
||||
if os.path.exists(repo_path+'.disabled'):
|
||||
repo_path = repo_path+'.disabled'
|
||||
|
||||
if not execute_install_script(url, repo_path):
|
||||
if not execute_install_script(url, repo_path, instant_execution=instant_execution):
|
||||
return False
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user