diff --git a/src/Command/BehaviorCommand.php b/src/Command/BehaviorCommand.php index c4a06a33..221633e9 100644 --- a/src/Command/BehaviorCommand.php +++ b/src/Command/BehaviorCommand.php @@ -26,6 +26,14 @@ class BehaviorCommand extends SimpleBakeCommand */ public string $pathFragment = 'Model/Behavior/'; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a model behavior and test.'; + } + /** * @inheritDoc */ diff --git a/src/Command/CellCommand.php b/src/Command/CellCommand.php index 739b9991..e1521a8d 100644 --- a/src/Command/CellCommand.php +++ b/src/Command/CellCommand.php @@ -31,6 +31,14 @@ class CellCommand extends SimpleBakeCommand */ public string $pathFragment = 'View/Cell/'; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a view cell, template and test.'; + } + /** * @inheritDoc */ diff --git a/src/Command/CommandCommand.php b/src/Command/CommandCommand.php index 00c4f49b..d2aac4ac 100644 --- a/src/Command/CommandCommand.php +++ b/src/Command/CommandCommand.php @@ -29,6 +29,14 @@ class CommandCommand extends SimpleBakeCommand */ public string $pathFragment = 'Command/'; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a console command and test.'; + } + /** * @inheritDoc */ diff --git a/src/Command/CommandHelperCommand.php b/src/Command/CommandHelperCommand.php index 643ed758..f64b5857 100644 --- a/src/Command/CommandHelperCommand.php +++ b/src/Command/CommandHelperCommand.php @@ -26,6 +26,14 @@ class CommandHelperCommand extends SimpleBakeCommand */ public string $pathFragment = 'Command/Helper/'; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a console command helper and test.'; + } + /** * @inheritDoc */ diff --git a/src/Command/ControllerAllCommand.php b/src/Command/ControllerAllCommand.php index c1bc2009..eb4a1787 100644 --- a/src/Command/ControllerAllCommand.php +++ b/src/Command/ControllerAllCommand.php @@ -32,6 +32,14 @@ class ControllerAllCommand extends BakeCommand protected ControllerCommand $controllerCommand; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create all controllers for an application or plugin.'; + } + /** * @inheritDoc */ diff --git a/src/Command/ControllerCommand.php b/src/Command/ControllerCommand.php index cc460bc4..967a5ece 100644 --- a/src/Command/ControllerCommand.php +++ b/src/Command/ControllerCommand.php @@ -34,6 +34,14 @@ class ControllerCommand extends BakeCommand */ public string $pathFragment = 'Controller/'; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a controller and test'; + } + /** * Execute the command. * diff --git a/src/Command/EnumCommand.php b/src/Command/EnumCommand.php index 52e2bf9b..09e0e97d 100644 --- a/src/Command/EnumCommand.php +++ b/src/Command/EnumCommand.php @@ -33,6 +33,14 @@ class EnumCommand extends SimpleBakeCommand */ public string $pathFragment = 'Model/Enum/'; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a model Enum'; + } + /** * @inheritDoc */ diff --git a/src/Command/FixtureAllCommand.php b/src/Command/FixtureAllCommand.php index 241e7277..d5b691e7 100644 --- a/src/Command/FixtureAllCommand.php +++ b/src/Command/FixtureAllCommand.php @@ -38,6 +38,14 @@ public static function defaultName(): string return 'bake fixture all'; } + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create all fixtures for an application or plugin.'; + } + /** * Gets the option parser instance and configures it. * diff --git a/src/Command/FixtureCommand.php b/src/Command/FixtureCommand.php index 3a5860c0..405c2598 100644 --- a/src/Command/FixtureCommand.php +++ b/src/Command/FixtureCommand.php @@ -39,6 +39,14 @@ */ class FixtureCommand extends BakeCommand { + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a test fixture class.'; + } + /** * Get the file path. * diff --git a/src/Command/FormCommand.php b/src/Command/FormCommand.php index 95b680e8..09a2d5f5 100644 --- a/src/Command/FormCommand.php +++ b/src/Command/FormCommand.php @@ -26,6 +26,14 @@ class FormCommand extends SimpleBakeCommand */ public string $pathFragment = 'Form/'; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a form class and test.'; + } + /** * @inheritDoc */ diff --git a/src/Command/HelperCommand.php b/src/Command/HelperCommand.php index 81c43f5f..f2a9450c 100644 --- a/src/Command/HelperCommand.php +++ b/src/Command/HelperCommand.php @@ -26,6 +26,14 @@ class HelperCommand extends SimpleBakeCommand */ public string $pathFragment = 'View/Helper/'; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a view helper and test.'; + } + /** * @inheritDoc */ diff --git a/src/Command/MailerCommand.php b/src/Command/MailerCommand.php index 6cd9d187..2ddd9760 100644 --- a/src/Command/MailerCommand.php +++ b/src/Command/MailerCommand.php @@ -29,6 +29,14 @@ class MailerCommand extends SimpleBakeCommand */ public string $pathFragment = 'Mailer/'; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a mailer and test.'; + } + /** * @inheritDoc */ @@ -54,7 +62,7 @@ public function template(): string } /** - * Bake the Mailer class and html/text layout files. + * Bake the Mailer class. * * @param string $name The name of the mailer to make. * @param \Cake\Console\Arguments $args The console arguments diff --git a/src/Command/MiddlewareCommand.php b/src/Command/MiddlewareCommand.php index 499c579b..c5aed4ca 100644 --- a/src/Command/MiddlewareCommand.php +++ b/src/Command/MiddlewareCommand.php @@ -26,6 +26,14 @@ class MiddlewareCommand extends SimpleBakeCommand */ public string $pathFragment = 'Middleware/'; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a middleware class and test.'; + } + /** * @inheritDoc */ diff --git a/src/Command/ModelAllCommand.php b/src/Command/ModelAllCommand.php index 8730e99d..55ec9a10 100644 --- a/src/Command/ModelAllCommand.php +++ b/src/Command/ModelAllCommand.php @@ -32,6 +32,14 @@ class ModelAllCommand extends BakeCommand protected ModelCommand $modelCommand; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create all models, fixtures and tests in an application or plugin.'; + } + /** * @inheritDoc */ diff --git a/src/Command/ModelCommand.php b/src/Command/ModelCommand.php index 131dbfa3..a8d87cde 100644 --- a/src/Command/ModelCommand.php +++ b/src/Command/ModelCommand.php @@ -63,6 +63,14 @@ class ModelCommand extends BakeCommand */ protected array $_tables = []; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a table class and its related entity, enums, test fixture and tests.'; + } + /** * Execute the command. * diff --git a/src/Command/PluginCommand.php b/src/Command/PluginCommand.php index 73665d06..020fb6b6 100644 --- a/src/Command/PluginCommand.php +++ b/src/Command/PluginCommand.php @@ -43,6 +43,14 @@ class PluginCommand extends BakeCommand protected bool $isVendor = false; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a plugin.'; + } + /** * Execute the command. * diff --git a/src/Command/TemplateAllCommand.php b/src/Command/TemplateAllCommand.php index 2c7ff454..8f271e01 100644 --- a/src/Command/TemplateAllCommand.php +++ b/src/Command/TemplateAllCommand.php @@ -29,6 +29,14 @@ class TemplateAllCommand extends BakeCommand { protected TemplateCommand $templateCommand; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create all view templates for all controllers in an application or plugin.'; + } + /** * @inheritDoc */ diff --git a/src/Command/TemplateCommand.php b/src/Command/TemplateCommand.php index ae96888f..e2ff285b 100644 --- a/src/Command/TemplateCommand.php +++ b/src/Command/TemplateCommand.php @@ -81,6 +81,14 @@ class TemplateCommand extends BakeCommand */ public string $ext = 'php'; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a view template.'; + } + /** * Override initialize * diff --git a/src/Command/TestCommand.php b/src/Command/TestCommand.php index 6dcee136..bdefcfb1 100644 --- a/src/Command/TestCommand.php +++ b/src/Command/TestCommand.php @@ -95,6 +95,14 @@ class TestCommand extends BakeCommand */ protected array $_fixtures = []; + /** + * @inheritDoc + */ + public static function getDescription(): string + { + return 'Create a test case skeleton for a class.'; + } + /** * Execute test generation *