lithium\console\command\Create::run PHP Method

run() public method

Run the create command. Takes $command and delegates to $command::$method
public run ( string $command = null ) : boolean
$command string
return boolean
    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;
    }