MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / list_all

Method list_all

relay/instance_registry.py:394–399  ·  view source on GitHub ↗

List all instances as dictionaries

(self)

Source from the content-addressed store, hash-verified

392 return True
393
394 def list_all(self) -> list[dict]:
395 """List all instances as dictionaries"""
396 return [
397 instance.to_dict(is_default=(instance.instance_id == self._default_instance_id))
398 for instance in self._instances.values()
399 ]
400
401 def _unique_match(self, matches: list[UnityInstance], query: str) -> UnityInstance | None:
402 """Return single match, raise on ambiguity, return None on no match."""

Callers 3

test_list_allMethod · 0.80
_handle_cli_messageMethod · 0.80

Calls 1

to_dictMethod · 0.45

Tested by 2

test_list_allMethod · 0.64