Skip to content

Commit

Permalink
TASK: remove Freeze State column and use * for package state besides …
Browse files Browse the repository at this point in the history
…packageKey
  • Loading branch information
crydotsnake committed Jun 13, 2024
1 parent 309770a commit 496a532
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Neos.Flow/Classes/Command/PackageCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,15 @@ public function listCommand(): void
$freezeSupported = $this->bootstrap->getContext()->isDevelopment();

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

/**
Expand Down

0 comments on commit 496a532

Please sign in to comment.