Skip to content

Commit 191be12

Browse files
committed
Fix current list
1 parent 55af63c commit 191be12

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.idea/csv-plugin.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Commands/Projects/CurrentProjectCommand.php

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,27 @@ protected function execute(InputInterface $input, OutputInterface $output)
4949
if ($input->getArgument('list')) {
5050
$i = 0;
5151
$this->tools()->info('available libraries');
52-
$this->tools()->newline();
53-
54-
$i = 0;
55-
$this->tools()->info('available services');
56-
5752
$project
58-
->services()
53+
->libraries()
5954
->list()
60-
->sort(function (Service $a, Service $b) {
55+
->sort(function (Library $a, Library $b) {
6156
return $a->name() <=> $b->name();
6257
})
63-
->each(function (Service $lib, $key) use (&$i) {
58+
->each(function (Library $lib, $key) use (&$i) {
6459
$this->tools()->step(++$i, $lib->name());
6560
})
6661
;
62+
$this->tools()->newline();
63+
64+
$i = 0;
65+
$this->tools()->info('available services');
6766
$project
68-
->libraries()
67+
->services()
6968
->list()
70-
->sort(function (Library $a, Library $b) {
69+
->sort(function (Service $a, Service $b) {
7170
return $a->name() <=> $b->name();
7271
})
73-
->each(function (Library $lib, $key) use (&$i) {
72+
->each(function (Service $lib, $key) use (&$i) {
7473
$this->tools()->step(++$i, $lib->name());
7574
})
7675
;

0 commit comments

Comments
 (0)