Browse Source

feat: cm-cli - export_custom_node_ids

pull/676/head
Dr.Lt.Data 6 months ago
parent
commit
53d46f83d5
  1. 13
      cm-cli.py
  2. 2
      glob/manager_core.py

13
cm-cli.py

@ -469,13 +469,19 @@ def disable_node(node_name, is_all=False, cnt_msg=''):
print(f"{cnt_msg} [ SKIPPED] {node_name:50} => Not installed")
def export_custom_node_ids():
with open(sys.argv[2], "w", encoding='utf-8') as output_file:
for x in custom_node_map.keys():
print(x, file=output_file)
def show_list(kind, simple=False):
for k, v in custom_node_map.items():
node_path = os.path.join(custom_nodes_path, k)
if v[1]:
continue
node_path = os.path.join(custom_nodes_path, k)
states = set()
if os.path.exists(node_path):
prefix = '[ ENABLED ] '
@ -730,6 +736,9 @@ elif op == 'install-deps':
elif op == 'clear':
cancel()
elif op == 'export-custom-node-ids':
export_custom_node_ids()
else:
print(f"\nInvalid command `{op}`")

2
glob/manager_core.py

@ -23,7 +23,7 @@ sys.path.append(glob_path)
import cm_global
from manager_util import *
version = [2, 31, 1]
version = [2, 32]
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__), '..'))

Loading…
Cancel
Save