Skip to content

stdin support #4

@PgBiel

Description

@PgBiel

Hello,
Thanks for the great library! I'm new to Gleam, and this seems very useful to program abstractions around shell commands and such.

I'd like to ask, are there any plans for tools to work with stdin? In particular:

  1. Being able to provide a certain string (or bytes) as the full standard input to a program;
  2. Being able to redirect all stdin received by the Gleam program to the input of the program being run (something akin to LetBeStdin);
  3. Being able to pipe a program's stdout to another program's stdin in an efficient manner (could be platform-restricted if needed). This could require a deeper rework (to e.g. use some sort of Process type), but I still think that could be very handy when working with e.g. lots of data in the shell.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions