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

Method get_available_releases

unity_cli/hub/hub_cli.py:182–199  ·  view source on GitHub ↗

Get list of available Unity releases. Returns: List of available version strings.

(self)

Source from the content-addressed store, hash-verified

180 return True
181
182 def get_available_releases(self) -> list[str]:
183 """Get list of available Unity releases.
184
185 Returns:
186 List of available version strings.
187 """
188 result = self._run_command(["editors", "-r"])
189
190 versions: list[str] = []
191 for line in result.stdout.strip().split("\n"):
192 line = line.strip()
193 if line and not line.startswith("("):
194 # Extract version from line
195 version = line.split()[0] if line.split() else ""
196 if version:
197 versions.append(version)
198
199 return versions

Callers

nothing calls this directly

Calls 1

_run_commandMethod · 0.95

Tested by

no test coverage detected