assert_cmd icon indicating copy to clipboard operation
assert_cmd copied to clipboard

Add input/output redirection support

Open TanmayPatil105 opened this issue 1 year ago • 1 comments

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.

TanmayPatil105 avatar May 06 '24 18:05 TanmayPatil105