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

Method set_default

relay/instance_registry.py:378–384  ·  view source on GitHub ↗

Set the default instance

(self, instance_id: str)

Source from the content-addressed store, hash-verified

376 return None
377
378 def set_default(self, instance_id: str) -> bool:
379 """Set the default instance"""
380 if instance_id not in self._instances:
381 return False
382 self._default_instance_id = instance_id
383 logger.info(f"Set default instance: {instance_id}")
384 return True
385
386 def update_status(self, instance_id: str, status: InstanceStatus, detail: str | None = None) -> bool:
387 """Update instance status"""

Callers 3

_handle_cli_messageMethod · 0.80

Calls 1

infoMethod · 0.80

Tested by 2