psl
psl copied to clipboard
`Psl\Shell\execute` with TTY
Is your feature request related to a problem? Please describe. Hi there,
I want to replicate this code with PSL, but it doesn't look like we have TTY support here:
use Symfony\Component\Process\Process;
$process = new Process(['whatever']);
$process->setTimeout(null);
$process->setTty(true);
$process->mustRun();
the whatever is interactive and require input from the user.
Describe the solution you'd like Being able to configure a TTY/PTY :)
Shell\execute doesn't support input, it's more like a replacement for exec/shell_exe/system, than symfony/process, however, since now we have Async IO in PSL ( v2 branch ), it would be possible to introduce a new Process component, but it's not in my TODO list.
If someone else would pick this up, it would be great.