Skip to content

Commit 62a3380

Browse files
author
Benno Weinzierl
committed
[TASK] Minimal documentation and verbosity changes
1 parent 9106255 commit 62a3380

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Classes/Command/NodeOperationsCommandController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ public function copyCommand($nodeIdentifier, $targetNodeIdentifier, $position, $
9595

9696
$this->outputLine('Copying node "' . $node->getLabel() . '" ' . $position . ' node "' . $targetNode->getLabel() . '"...');
9797

98+
if ($name) {
99+
$this->outputLine('New NodeName will be: "' . $name . '"');
100+
}
101+
98102
$this->nodeOperationService->copy($node, $targetNode, $position, $name);
99103

100104
$this->outputLine('Done!');
@@ -112,10 +116,6 @@ protected function getContext()
112116
return $this->contextFactory->create(array(
113117
'workspaceName' => 'live',
114118
'currentDateTime' => $this->now,
115-
'invisibleContentShown' => FALSE,
116-
'removedContentShown' => FALSE,
117-
'inaccessibleContentShown' => FALSE,
118-
'dimensions' => array(),
119119
));
120120
}
121121
}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Example:
1212
```
1313
## Copy nodes
1414

15+
Example:
1516
```
16-
./flow nodeoperations:copy 1fd7d006-d1db-4s5c-ac89-7170fe22ce24 a77eaf64-eed9-4deb-9d21-52325d04d761 after 'New Name'
17+
./flow nodeoperations:copy --name="New NodeName" 1fd7d006-d1db-4s5c-ac89-7170fe22ce24 a77eaf64-eed9-4deb-9d21-52325d04d761 after
1718
```

0 commit comments

Comments
 (0)