output->writeln("Entering interactive shell. Type 'exit' to leave."); if (SystemTarget::isUnix()) { passthru('PS1=\'[StaticPHP] > \' /bin/bash', $code); return $code; } if (SystemTarget::getTargetOS() === 'Windows') { passthru('cmd.exe', $code); return $code; } $this->output->writeln('Unsupported OS for shell command.'); return static::FAILURE; } }