Extends
lithium\console\Command
Run the create command. Takes `$command` and delegates to `$command::$method`
Parameters
- string $command
Returns
booleanSource
public function run($command = null) {
if ($command && !$this->request->args()) {
return $this->_default($command);
}
$this->request->shift();
$this->template = $this->template ?: $command;
if (!$command) {
return false;
}
if ($this->_execute($command)) {
return true;
}
$this->error("{$command} could not be created.");
return false;
}