mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 16:25:39 +08:00
Add PackageInfoCommand to display package configuration information and support status
This commit is contained in:
@@ -138,6 +138,16 @@ abstract class Package
|
||||
return $this->stages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the list of OS families that have a registered build function (via #[BuildFor]).
|
||||
*
|
||||
* @return string[] e.g. ['Linux', 'Darwin']
|
||||
*/
|
||||
public function getBuildForOSList(): array
|
||||
{
|
||||
return array_keys($this->build_functions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the package has a specific stage defined.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user