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

Add input/output redirection support #202

Open
TanmayPatil105 opened this issue May 6, 2024 · 0 comments
Open

Add input/output redirection support #202

TanmayPatil105 opened this issue May 6, 2024 · 0 comments

Comments

@TanmayPatil105
Copy link

TanmayPatil105 commented May 6, 2024

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.

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

No branches or pull requests

1 participant