mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-19 23:13:18 +02:00
add minimenu
This commit is contained in:
parent
a079a29f6b
commit
9c060dfd15
@ -46,13 +46,21 @@ final class GenerateRectorOverviewCommand extends Command
|
||||
$this->consoleStyle->writeln('# All Rectors Overview');
|
||||
$this->consoleStyle->newLine();
|
||||
|
||||
// @todo menu to project + general rectors
|
||||
$this->consoleStyle->writeln('- [Projects](#projects)');
|
||||
$this->consoleStyle->writeln('- [General](#general)');
|
||||
$this->consoleStyle->newLine();
|
||||
|
||||
$this->consoleStyle->writeln('## Projects');
|
||||
$this->consoleStyle->newLine();
|
||||
|
||||
$rectorsByGroup = $this->groupRectors($this->getProjectsRectors());
|
||||
$this->printRectorsByGroup($rectorsByGroup);
|
||||
|
||||
$this->consoleStyle->writeln('---');
|
||||
|
||||
$this->consoleStyle->writeln('## General');
|
||||
$this->consoleStyle->newLine();
|
||||
|
||||
$rectorsByGroup = $this->groupRectors($this->getGeneralRectors());
|
||||
$this->printRectorsByGroup($rectorsByGroup);
|
||||
|
||||
@ -139,6 +147,8 @@ final class GenerateRectorOverviewCommand extends Command
|
||||
$rectorsByGroup[$rectorGroup][] = $rector;
|
||||
}
|
||||
|
||||
ksort($rectorsByGroup);
|
||||
|
||||
return $rectorsByGroup;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user