Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit b86053d

Browse files
committed
Update PrintIndicesCommand.php
Added shards and replicas inside the command output
1 parent 87fd863 commit b86053d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Command/PrintIndicesCommand.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,21 @@ protected function runCommand(InputInterface $input, OutputInterface $output)
5858
->getIndices();
5959

6060
$table = new Table($output);
61-
$table->setHeaders(['UUID', 'App Id', 'Is Ok?', 'Doc Count', 'Size']);
61+
$table->setHeaders(['UUID', 'App ID', 'Doc Count', 'Size', 'Ok?', 'shards', 'replicas']);
6262
/**
6363
* @var Index
6464
*/
6565
foreach ($indices as $index) {
6666
$table->addRow([
6767
$index->getUUID()->composeUUID(),
6868
$index->getAppUUID()->composeUUID(),
69-
$index->isOK() ? 'Yes' : 'No',
7069
$index->getDocCount(),
7170
$index->getSize(),
71+
$index->isOK()
72+
? 'Yes'
73+
: 'No',
74+
$index->getShards(),
75+
$index->getReplicas(),
7276
]);
7377
}
7478
$table->render();

0 commit comments

Comments
 (0)