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

[Process] Consider allowing streamable input #14482

Closed
schmittjoh opened this issue Apr 27, 2015 · 2 comments
Closed

[Process] Consider allowing streamable input #14482

schmittjoh opened this issue Apr 27, 2015 · 2 comments

Comments

@schmittjoh
Copy link
Contributor

Currently, the process component assumes that input is known before a command is invoked. Sometimes, you want to stream the input, i.e. gradually write it to the process that is being run. This could for example be done by exposing the pipes, or maybe better a specific method for writing:

$process = new Process('takes-some-input');
$process->start();

while ($stream->hasContent()) {
   $process->write($stream->read());
}
@sstok
Copy link
Contributor

sstok commented May 5, 2015

I like this idea 👍 and I already have a good use-case: Git rebase interactive.

@javiereguiluz
Copy link
Member

Closing it as fixed by #18386.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants