Skip to content

Commit c351bb8

Browse files
committed
Show property length in node:list
1 parent c4808e3 commit c351bb8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dev-master
1919

2020
### Enhancements
2121

22+
- [node:list] Show property length
2223
- [autocomplete] Autocomplete now includes command names
2324
- [references] Show UUIDs when listing reference properties
2425
- [import/export] Renamed session import and export to `session:import` &

src/PHPCR/Shell/Console/Command/Phpcr/NodeListCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,11 @@ private function renderProperties($currentNode, $table, $spacers, $filter = null
224224

225225
$table->addRow(array(
226226
'<property>' . implode('', $spacers). $name . '</property>',
227-
'<property-type>' . $this->formatter->getPropertyTypeName($property->getType()) . '</property-type>',
227+
sprintf(
228+
'<property-type>%s (%s)</property-type>',
229+
$this->formatter->getPropertyTypeName($property->getType()),
230+
implode(',', (array) $property->getLength())
231+
),
228232
$valueCell,
229233
));
230234
}

0 commit comments

Comments
 (0)