mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
Add DumpStagesCommand to dump package stages and their locations
This commit is contained in:
@@ -128,6 +128,16 @@ abstract class Package
|
||||
$this->stages[$name] = $stage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all defined stages for this package.
|
||||
*
|
||||
* @return array<string, callable>
|
||||
*/
|
||||
public function getStages(): array
|
||||
{
|
||||
return $this->stages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the package has a specific stage defined.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user