Skip to content

Add input/output redirection support #202

Open
@TanmayPatil105

Description

@TanmayPatil105

Support for input/output/error redirection can be added.
For example, if I want to execute cargo run -- < FILE or cargo run -- < DIRECTORY.
We can have a redirect_input method as follows:

cmd.redirect_stdin(&path);

Similarly for flushing the stdout and stderr to a file. We can have redirect_stdout and redirect_stderr.
I'm not sure if it's possible but I think it would be quite useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions