protected function runShell(Shell $shell, array $argv)
    {
        try {
            $shell->initialize();

            return $shell->runCommand($argv, true);
        } catch (StopException $e) {
            return $e->getCode();
        }
    }
protected function runShell(Shell $shell, array $argv)
    {
        try {
            $shell->initialize();

            return $shell->runCommand($argv, true);
        } catch (StopException $e) {
            return $e->getCode();
        }
    }
protected function runShell ( Shell $ shell , array $ argv ) { try { $ shell -> initialize ( ) ; return $ shell -> runCommand ( $ argv , true ) ; } catch ( StopException $ e ) { return $ e -> getCode ( ) ; } }
Execute a Shell class.

@param \Cake\Console\Shell $shell The shell to run.
@param array $argv The CLI arguments to invoke.
@return int Exit code
Execute a Shell class .