mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 00:35:41 +08:00
Add artifact name suggestions for download and install commands
This commit is contained in:
@@ -69,6 +69,17 @@ class ArtifactLoader
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get names of all loaded artifacts.
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public static function getLoadedArtifactNames(): array
|
||||
{
|
||||
self::initArtifactInstances();
|
||||
return array_keys(self::$artifacts ?? []);
|
||||
}
|
||||
|
||||
/**
|
||||
* Process #[CustomSource] attribute.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user