I'm attempting to write a small CLI program that does some arbitrary work before spawning a child process and handing control over to the end-user. I have everything working except I'm struggling to figure out how to "hand control" over to the end-user after spawning the process using Command
. My initial guess is somehow forwarding stdio from the child process to the Rust process, but I'm not sure if that's the best way or even possible.
Any guidance on how I can accomplish this?