protected function exec($command, $arguments = [], $options = [])
    {
        $arguments = implode(' ', (array) $arguments);
        $options   = implode(' ', (array) $options);

        $command = sprintf('%s %s %s', $command, $arguments, $options);

        $this->out('>> ' . $command);

        if ($this->io->getOption('dry-run')) {
            return '';
        }

        $return = exec(trim($command), $this->lastOutput, $this->lastReturn);

        $this->out($return);
    }
protected function exec($command, $arguments = [], $options = [])
    {
        $arguments = implode(' ', (array) $arguments);
        $options   = implode(' ', (array) $options);

        $command = sprintf('%s %s %s', $command, $arguments, $options);

        $this->out('>> ' . $command);

        if ($this->io->getOption('dry-run')) {
            return '';
        }

        $return = exec(trim($command), $this->lastOutput, $this->lastReturn);

        $this->out($return);
    }
protected function exec ( $ command , $ arguments = [ ] , $ options = [ ] ) { $ arguments = implode ( ' ' , ( array ) $ arguments ) ; $ options = implode ( ' ' , ( array ) $ options ) ; $ command = sprintf ( '%s %s %s' , $ command , $ arguments , $ options ) ; $ this -> out ( '>> ' . $ command ) ; if ( $ this -> io -> getOption ( 'dry-run' ) ) { return '' ; } $ return = exec ( trim ( $ command ) , $ this -> lastOutput , $ this -> lastReturn ) ; $ this -> out ( $ return ) ; }
Exec a command.

@param string $command
@param array  $arguments
@param array  $options

@return  string
Exec a command .