Skip to content

Commit eef69ff

Browse files
authored
Merge pull request #183 from phpcr/fix_path_tag
Do not use <path> style tag, as conflicts with genuine <path> placeholder
2 parents 8ccf79d + 7f2fd1e commit eef69ff

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/PHPCR/Shell/Console/Application/ShellApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ protected function registerShellCommands()
198198
private function configureFormatter(OutputFormatter $formatter)
199199
{
200200
$style = new OutputFormatterStyle('yellow', null, array('bold'));
201-
$formatter->setStyle('path', $style);
201+
$formatter->setStyle('pathbold', $style);
202202

203203
$style = new OutputFormatterStyle('green');
204204
$formatter->setStyle('localname', $style);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function execute(InputInterface $input, OutputInterface $output)
7575
'Locked?' => $isLocked,
7676
);
7777

78-
$output->writeln('<path>' . $node->getPath() . '</path>');
78+
$output->writeln('<pathbold>' . $node->getPath() . '</pathbold>');
7979
$table = new Table($output);
8080

8181
foreach ($info as $label => $value) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function execute(InputInterface $input, OutputInterface $output)
123123

124124
if ($table->getNumberOfRows() > 0) {
125125
$this->nbNodes++;
126-
$output->writeln(sprintf('<path>%s</path> [%s] > %s',
126+
$output->writeln(sprintf('<pathbold>%s</pathbold> [%s] > %s',
127127
$node->getPath(),
128128
$node->getPrimaryNodeType()->getName(),
129129
implode(', ', $node->getPrimaryNodeType()->getDeclaredSupertypeNames())

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function configure()
2727
$this->setHelp(<<<HERE
2828
This command is used to change the order of a child node relative to the current node.
2929
30-
For example, given that the node <path>/foobar</path> has the children <node>child2</node> and
30+
For example, given that the node <pathbold>/foobar</pathbold> has the children <node>child2</node> and
3131
<node>child4</node> then:
3232
3333
PHPCRSH> cd foobar

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function execute(InputInterface $input, OutputInterface $output)
5858

5959
foreach ($properties as $property) {
6060
$output->writeln(sprintf(
61-
'<path>%s%s</path><localname>%s</localname>: %s',
61+
'<pathbold>%s%s</pathbold><localname>%s</localname>: %s',
6262
$parentPath = $pathHelper->getParentPath($property->getPath()),
6363
$parentPath != '/' ? '/' : '',
6464
$pathHelper->getNodeName($property->getPath()),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function execute(InputInterface $input, OutputInterface $output)
7171
}
7272

7373
if (0 !== count($references['weak']) || 0 !== count($references['strong'])) {
74-
$output->writeln('<path>' . $node->getPath() . '</path>');
74+
$output->writeln('<pathbold>' . $node->getPath() . '</pathbold>');
7575
$table->render($output);
7676
}
7777
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4343
$nodes = $session->findNodes($path);
4444

4545
foreach ($nodes as $node) {
46-
$output->writeln('<path>' . $node->getPath() . '</path>');
46+
$output->writeln('<pathbold>' . $node->getPath() . '</pathbold>');
4747
$sharedSet = $node->getSharedSet();
4848

4949
foreach ($sharedSet as $sharedNode) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function execute(InputInterface $input, OutputInterface $output)
5252
$nodes = $session->findNodes($path);
5353

5454
foreach ($nodes as $node) {
55-
$output->writeln('<path>' . $node->getPath() . '</path>');
55+
$output->writeln('<pathbold>' . $node->getPath() . '</pathbold>');
5656
$node->update($srcWorkspace);
5757
}
5858
}

0 commit comments

Comments
 (0)