Skip to content

[Feature] How do you pipe? #151

@DevilDimon

Description

@DevilDimon

I'm trying the library out and essentially my question is how to execute the equivalent of the following:

grep 'text' . | wc -l

using this library without manually collecting the output of each step.

The run function signature only appears to accept one subprogram name as an argument to launch a single process (which is understandable).

The current outputs/inputs are types like String or Data, so it's not immediately clear how to 'pipe' the output of one subprocess to another, without resorting to doing it manually via an intermediate String or something.
I suppose all the shells on all supported platforms support piping so there could be a way to simplify this common task? (or maybe there already is?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions