feat(cli): lock captures effective description; list shows it; new commands surface view with origin and collision reporting
This commit is contained in:
@@ -19,15 +19,21 @@ final class ListCommand extends Command
|
||||
$toolbox = $this->toolboxDir($parsed['options']);
|
||||
$installer = new Installer($root, $toolbox, $this->console, $this->rootCore($parsed['options'], $root));
|
||||
|
||||
$rows = [['TIPO', 'ID', 'VERSIÓN', 'MODO']];
|
||||
$rows = [['TIPO', 'ID', 'VERSIÓN', 'MODO', 'DESCRIPCIÓN']];
|
||||
|
||||
$core = $installer->lock()->core();
|
||||
if ($core !== null) {
|
||||
$rows[] = ['core', 'core', (string) ($core['version'] ?? '?'), 'copy'];
|
||||
$rows[] = ['core', 'core', (string) ($core['version'] ?? '?'), 'copy', ''];
|
||||
}
|
||||
|
||||
foreach ($installer->lock()->components() as $id => $entry) {
|
||||
$rows[] = [$entry['package'], $id, $entry['version'], $entry['mode']];
|
||||
$rows[] = [
|
||||
$entry['package'],
|
||||
$id,
|
||||
$entry['version'],
|
||||
$entry['mode'],
|
||||
$entry['description'] ?? '—',
|
||||
];
|
||||
}
|
||||
|
||||
if (count($rows) === 1) {
|
||||
|
||||
Reference in New Issue
Block a user