You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/PHPCR/Shell/Console/Command/Phpcr/NodeListCommand.php
+30-2Lines changed: 30 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@
23
23
24
24
class NodeListCommand extends BasePhpcrCommand
25
25
{
26
+
constSORT_OPTIONS = array('none', 'asc', 'desc');
27
+
26
28
protected$formatter;
27
29
protected$textHelper;
28
30
protected$maxLevel;
@@ -38,6 +40,7 @@ protected function configure()
38
40
$this->addOption('properties', null, InputOption::VALUE_NONE, 'List only the properties of this node');
39
41
$this->addOption('level', 'L', InputOption::VALUE_REQUIRED, 'Depth of tree to show');
40
42
$this->addOption('template', 't', InputOption::VALUE_NONE, 'Show template nodes and properties');
43
+
$this->addOption('sort', 's', InputOption::VALUE_REQUIRED, 'Sort properties, one of <comment>asc</comment>, <comment>desc</comment>, or <comment>none</comment>', 'asc');
41
44
$this->setHelp(<<<HERE
42
45
List both or one of the children and properties of this node.
43
46
@@ -61,6 +64,15 @@ public function execute(InputInterface $input, OutputInterface $output)
0 commit comments