-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Currently piping output between two commands involves going through raw handles and filedescriptors which requires #[cfg]
d code and imports or spawning a thread and juggling data between two streams manually.
Ideally the API would be as simple as this:
let pipe = Stdio::interprocess_pipe();
let cmd1 = ….stdout(pipe.clone()).spawn();
let cmd2 = ....stdin(pipe).status();
or something along the lines.
solson, sfackler and euclio
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.