Class CommandTask
Base class for Shell Command reflection.
- AppShell
- CommandTask
Package: Cake\Console\Command\Task
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/Task/CommandTask.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/Task/CommandTask.php
Method Summary
-
_appendShells() protected
Scan the provided paths for shells, and append them into $shellList -
commands() public
Return a list of all commands -
getShell() public
Get Shell instance for the given command -
getShellList() public
Gets the shell command listing. -
options() public
Get Shell instance for the given command -
subCommands() public
Return a list of subcommands for a given command
Method Detail
_appendShells() protected ¶
_appendShells( string $type , array $shells , array $shellList )
Scan the provided paths for shells, and append them into $shellList
Parameters
- string $type
- The type of object.
- array $shells
- The shell name.
- array $shellList
- $shellList List of shells.
getShell() public ¶
getShell( mixed $commandName )
Get Shell instance for the given command
Parameters
- mixed $commandName
- The command you want.
Returns
mixed
options() public ¶
options( mixed $commandName )
Get Shell instance for the given command
Parameters
- mixed $commandName
- The command to get options for.
Returns
array
subCommands() public ¶
subCommands( string $commandName )
Return a list of subcommands for a given command
Parameters
- string $commandName
- The command you want subcommands from.
Returns
array