Add DumpStagesCommand to dump package stages and their locations

This commit is contained in:
crazywhalecc
2026-02-26 16:09:18 +08:00
parent bb257cffd6
commit e9279940d7
4 changed files with 189 additions and 0 deletions

View File

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