Add PackageInfoCommand to display package configuration information and support status

This commit is contained in:
crazywhalecc
2026-02-27 09:50:21 +08:00
parent cfce177070
commit 28c82b811b
5 changed files with 260 additions and 0 deletions

View File

@@ -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.
*