Skip to content

Commit 31bf3de

Browse files
committed
Fixed commands broken by name changes.
1 parent f07a7a7 commit 31bf3de

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Commands/CodeBuilderCommands.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ public function initDataLocationOption(InputInterface $input, AnnotationData $an
8484
* exist. A '.' means the current location. This option is ignored if the
8585
* module already exists.
8686
* @option dry-run If specified, no files are written.
87-
* @usage drush cb-module
87+
* @usage drush cb:module
8888
* Build a Drupal component for a module, with interactive prompt.
89-
* @usage drush cb-module .
89+
* @usage drush cb:module .
9090
* Build a Drupal component for the module at the current location, with
9191
* interactive prompt.
92-
* @usage drush cb-module my_module module
92+
* @usage drush cb:module my_module module
9393
* Build the basic module 'my_module'.
94-
* @usage drush cb-update my_module plugins
94+
* @usage drush cb:update my_module plugins
9595
* Add plugins to the module 'my_module'. If the module doesn't exist, it
9696
* will be created.
9797
* @bootstrap DRUSH_BOOTSTRAP_DRUPAL_FULL
@@ -111,7 +111,7 @@ public function commandBuildComponent(
111111
) {
112112
// Interactive mode is required, bail otherwise.
113113
if (!$input->isInteractive()) {
114-
throw new \Exception("The cb-module command must be run in interactive mode.");
114+
throw new \Exception("The cb:module command must be run in interactive mode.");
115115
}
116116

117117
try {
@@ -136,7 +136,7 @@ public function commandBuildComponent(
136136
/**
137137
* Set the module name to the current directory if not provided.
138138
*
139-
* @hook init cb-module
139+
* @hook init cb:module
140140
*/
141141
public function initializeBuildComponent(InputInterface $input, AnnotationData $annotationData) {
142142
$module_name = $input->getArgument('module_name');
@@ -156,7 +156,7 @@ public function initializeBuildComponent(InputInterface $input, AnnotationData $
156156
/**
157157
* Get the component type if not provided.
158158
*
159-
* @hook interact cb-module
159+
* @hook interact cb:module
160160
*/
161161
public function interactBuildComponent(InputInterface $input, OutputInterface $output, AnnotationData $annotationData) {
162162
// Get the generator task.
@@ -677,7 +677,7 @@ protected function getQuestionPromptForProperty($text, $property_info) {
677677
}
678678

679679
/**
680-
* @hook validate cb-module
680+
* @hook validate cb:module
681681
*/
682682
public function validateBuildComponent(CommandData $commandData) {
683683
$input = $commandData->input();
@@ -937,11 +937,11 @@ protected function getComponentFolder($component_type, $component_name, $parent_
937937
*
938938
* @command cb:update
939939
*
940-
* @usage drush cb-update
940+
* @usage drush cb:update
941941
* Update data on Drupal components, storing in the default location.
942-
* @usage drush cb-update --data-location=relative/path
942+
* @usage drush cb:update --data-location=relative/path
943943
* Update data on hooks, storing data in public://relative/path.
944-
* @usage drush cb-update --data-location=/absolute/path
944+
* @usage drush cb:update --data-location=/absolute/path
945945
* Update data on hooks, storing data in /absolute/path.
946946
* @bootstrap DRUSH_BOOTSTRAP_DRUPAL_FULL
947947
* @aliases cbu
@@ -984,9 +984,9 @@ public function commandUpdateDefinitions(OutputInterface $output) {
984984
* 'services': show services.
985985
* 'tags': show tagged service types.
986986
* 'fields': show field types.
987-
* @usage drush cb-list
987+
* @usage drush cb:list
988988
* List stored analysis data on Drupal components.
989-
* @usage drush cb-list --type=plugins
989+
* @usage drush cb:list --type=plugins
990990
* List stored analysis data on Drupal plugin types.
991991
* @bootstrap DRUSH_BOOTSTRAP_DRUPAL_FULL
992992
* @aliases cbl

0 commit comments

Comments
 (0)