GrumPHP\Process\ProcessBuilder::guardWindowsCmdMaxInputStringLimitation PHP Method

guardWindowsCmdMaxInputStringLimitation() private method

private guardWindowsCmdMaxInputStringLimitation ( Process $process )
$process Symfony\Component\Process\Process
    private function guardWindowsCmdMaxInputStringLimitation(Process $process)
    {
        if (!Platform::isWindows()) {
            return;
        }
        if (strlen($process->getCommandLine()) <= Platform::WINDOWS_COMMANDLINE_STRING_LIMITATION) {
            return;
        }
        $this->io->write('', true);
        $this->io->write('<fg=yellow>Oh no, we hit the windows cmd input limit!</fg=yellow>', true);
        $this->io->write('<fg=yellow>Skipping task ...</fg=yellow>');
        throw PlatformException::commandLineStringLimit($process);
    }