mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 16:55:38 +08:00
Enhancement for bin/spc dev:info command
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user