Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Psl\Shell\execute with TTY #271

Open
bendavies opened this issue Nov 11, 2021 · 1 comment
Open

Psl\Shell\execute with TTY #271

bendavies opened this issue Nov 11, 2021 · 1 comment
Assignees
Labels
Priority: Medium This issue may be useful, and needs some attention. Status: Available No one has claimed responsibility for resolving this issue. Type: Enhancement Most issues will probably ask for additions or changes.

Comments

@bendavies
Copy link

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 :)

@bendavies bendavies added the Type: Enhancement Most issues will probably ask for additions or changes. label Nov 11, 2021
@azjezz
Copy link
Owner

azjezz commented Nov 11, 2021

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.

@azjezz azjezz added Priority: Medium This issue may be useful, and needs some attention. Status: Available No one has claimed responsibility for resolving this issue. labels Nov 11, 2021
@azjezz azjezz added this to To do in v2.0.0 via automation Nov 11, 2021
@azjezz azjezz added this to the 2.0.0 milestone Nov 11, 2021
@azjezz azjezz removed this from To do in v2.0.0 Nov 11, 2021
@azjezz azjezz removed this from the 2.0.0 milestone May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium This issue may be useful, and needs some attention. Status: Available No one has claimed responsibility for resolving this issue. Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

No branches or pull requests

2 participants