dev/src/Split/Command.php
protected function splitshInstall(OutputInterface $output, RunShell $shell, $execDir, $binaryPath)
    {
        if ($binaryPath) {
            $output->writeln('<comment>[info]</comment> Using User-Provided Splitsh binary.');
            return $binaryPath;
        }

        $output->writeln('<comment>[info]</comment> Compiling Splitsh');
        $this->writeDiv($output);

        $install = new SplitInstall($shell, $execDir);

        $res = $install->installFromSource($this->rootPath);

        $output->writeln(sprintf(
            '<comment>[info]</comment> Splitsh Installer says <info>%s</info>',
            $res[0]
        ));

        return $res[1];
    }
protected function splitshInstall(OutputInterface $output, RunShell $shell, $execDir, $binaryPath)
    {
        if ($binaryPath) {
            $output->writeln('<comment>[info]</comment> Using User-Provided Splitsh binary.');
            return $binaryPath;
        }

        $output->writeln('<comment>[info]</comment> Compiling Splitsh');
        $this->writeDiv($output);

        $install = new SplitInstall($shell, $execDir);

        $res = $install->installFromSource($this->rootPath);

        $output->writeln(sprintf(
            '<comment>[info]</comment> Splitsh Installer says <info>%s</info>',
            $res[0]
        ));

        return $res[1];
    }
protected function splitshInstall ( OutputInterface $ output , RunShell $ shell , $ execDir , $ binaryPath ) { if ( $ binaryPath ) { $ output -> writeln ( '<comment>[info]</comment> Using User-Provided Splitsh binary.' ) ; return $ binaryPath ; } $ output -> writeln ( '<comment>[info]</comment> Compiling Splitsh' ) ; $ this -> writeDiv ( $ output ) ; $ install = new SplitInstall ( $ shell , $ execDir ) ; $ res = $ install -> installFromSource ( $ this -> rootPath ) ; $ output -> writeln ( sprintf ( '<comment>[info]</comment> Splitsh Installer says <info>%s</info>' , $ res [ 0 ] ) ) ; return $ res [ 1 ] ; }
Install the Splitsh program.

You can override this method in unit tests.

@param OutputInterface $output Allows writing to cli.
@param RunShell $shell A wrapper for executing shell commands.
@param string $execDir The path to a working directory.
@param string|null The path to an existing splitsh binary, or null if
install from source is desired.
@return string
Install the Splitsh program .