Output packages in archive command using getPrettyString
parent
43be72acb4
commit
14ee67bed4
|
@ -112,12 +112,12 @@ EOT
|
|||
|
||||
if (count($packages) > 1) {
|
||||
$package = $packages[0];
|
||||
$io->write('<info>Found multiple matches, selected '.$package.'.</info>');
|
||||
$io->write('Alternatives were '.implode(', ', $packages).'.');
|
||||
$io->write('<info>Found multiple matches, selected '.$package->getPrettyString().'.</info>');
|
||||
$io->write('Alternatives were '.implode(', ', array_map(function ($p) { return $p->getPrettyString(); }, $packages)).'.');
|
||||
$io->write('<comment>Please use a more specific constraint to pick a different package.</comment>');
|
||||
} elseif ($packages) {
|
||||
$package = $packages[0];
|
||||
$io->write('<info>Found an exact match '.$package.'.</info>');
|
||||
$io->write('<info>Found an exact match '.$package->getPrettyString().'.</info>');
|
||||
} else {
|
||||
$io->write('<error>Could not find a package matching '.$packageName.'.</error>');
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue