Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/Command/BehaviorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Command/CellCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Command/CommandCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Command/CommandHelperCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Command/ControllerAllCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Command/ControllerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
8 changes: 8 additions & 0 deletions src/Command/EnumCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Command/FixtureAllCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
8 changes: 8 additions & 0 deletions src/Command/FixtureCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
*/
class FixtureCommand extends BakeCommand
{
/**
* @inheritDoc
*/
public static function getDescription(): string
{
return 'Create a test fixture class.';
}

/**
* Get the file path.
*
Expand Down
8 changes: 8 additions & 0 deletions src/Command/FormCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Command/HelperCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
10 changes: 9 additions & 1 deletion src/Command/MailerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/Command/MiddlewareCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Command/ModelAllCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Command/ModelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
8 changes: 8 additions & 0 deletions src/Command/PluginCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
8 changes: 8 additions & 0 deletions src/Command/TemplateAllCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Command/TemplateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
8 changes: 8 additions & 0 deletions src/Command/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
Loading