MCPcopy
hub / github.com/Comfy-Org/ComfyUI-Manager / ManagedResult

Class ManagedResult

comfyui_manager/glob/manager_core.py:279–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278
279class ManagedResult:
280 def __init__(self, action):
281 self.action = action
282 self.items = []
283 self.result = True
284 self.to_path = None
285 self.msg = None
286 self.target = None
287 self.postinstall = lambda: True
288 self.ver = None
289
290 def append(self, item):
291 self.items.append(item)
292
293 def fail(self, msg):
294 self.result = False
295 self.msg = msg
296 return self
297
298 def with_target(self, target):
299 self.target = target
300 return self
301
302 def with_msg(self, msg):
303 self.msg = msg
304 return self
305
306 def with_postinstall(self, postinstall):
307 self.postinstall = postinstall
308 return self
309
310 def with_ver(self, ver):
311 self.ver = ver
312 return self
313
314
315class NormalizedKeyDict:

Callers 12

unified_fixMethod · 0.70
unified_enableMethod · 0.70
unified_disableMethod · 0.70
unified_uninstallMethod · 0.70
cnr_installMethod · 0.70
repo_installMethod · 0.70
repo_updateMethod · 0.70
unified_updateMethod · 0.70
install_by_idMethod · 0.70
gitclone_installFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected