Skip to content

Commit

Permalink
TASK: use symbols instead of word to identify Frozen State
Browse files Browse the repository at this point in the history
  • Loading branch information
crydotsnake committed Jun 8, 2024
1 parent 81669f0 commit bba3cee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Neos.Flow/Classes/Command/PackageCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,13 @@ public function createCommand(string $packageKey, string $packageType = PackageI
public function listCommand(): void
{
$availablePackages = $this->packageManager->getAvailablePackages();
ksort($availablePackages);
$freezeSupported = $this->bootstrap->getContext()->isDevelopment();

$tableRows = [];
$tableHeaderRows = ['Package Key', 'Installed Version', 'Frozen State'];
/** @var PackageInterface|PackageKeyAwareInterface $package */
foreach ($availablePackages as $packageKey => $package) {
$frozenState = ($freezeSupported && $this->packageManager->isPackageFrozen($packageKey) ? 'Frozen' : 'Not Frozen');
$frozenState = ($freezeSupported && $this->packageManager->isPackageFrozen($packageKey) ? '' : '');
$tableRows[] = [$package->getPackageKey(), $package->getInstalledVersion(), $frozenState];
}
$this->output->outputTable($tableRows, $tableHeaderRows);
Expand Down

0 comments on commit bba3cee

Please sign in to comment.