Enhancement for bin/spc dev:info command

This commit is contained in:
crazywhalecc
2026-03-08 17:47:09 +08:00
parent 247a254af4
commit b90356bc1d
3 changed files with 404 additions and 11 deletions

View File

@@ -203,6 +203,17 @@ class ArtifactCache
return $this->cache[$artifact_name]['binary'][$platform] ?? null;
}
/**
* Get all binary cache entries for an artifact, keyed by platform string.
*
* @param string $artifact_name Artifact name
* @return array<string, array> Map of platform → cache info (may be empty)
*/
public function getAllBinaryInfo(string $artifact_name): array
{
return $this->cache[$artifact_name]['binary'] ?? [];
}
/**
* Get the full path to the cached file/directory.
*