parse($args); $root = $this->root($parsed['options']); $toolbox = $this->toolboxDir($parsed['options']); $installer = new Installer($root, $toolbox, $this->console, $this->rootCore($parsed['options'], $root)); $rows = [['TIPO', 'ID', 'VERSIÓN', 'MODO', 'DESCRIPCIÓN']]; $core = $installer->lock()->core(); if ($core !== null) { $rows[] = ['core', 'core', (string) ($core['version'] ?? '?'), 'copy', '']; } foreach ($installer->lock()->components() as $id => $entry) { $rows[] = [ $entry['package'], $id, $entry['version'], $entry['mode'], $entry['description'] ?? '—', ]; } if (count($rows) === 1) { $this->console->out('No hay nada instalado.'); return 0; } $this->console->table($rows); return 0; } }