Add package outputs, colorize motd

This commit is contained in:
crazywhalecc
2025-12-09 16:34:43 +08:00
parent ac01867e9c
commit b0f630f95f
8 changed files with 98 additions and 26 deletions

View File

@@ -104,6 +104,16 @@ class PackageInstaller
return $this;
}
public function printBuildPackageOutputs(): void
{
foreach ($this->build_packages as $package) {
if (($outputs = $package->getOutputs()) !== []) {
InteractiveTerm::notice('Package ' . ConsoleColor::green($package->getName()) . ' outputs');
$this->printArrayInfo(info: $outputs);
}
}
}
/**
* Run the package installation process.
*/