I am building a CLI using Rust-2018. It's a kind of wrapper around an old command. I need to call that command in my Rust program but the thing is that the command asks for input (password) to perform the task.
Just like keytool when to need to generate a keypair and it prompts you to enter a password.
I want the called program to perform all his flow and only know if the program ends successfully or not.
This is what I have tried so far but it's not working as expected.
use std::process::{Command, Stdio};
Command::new("...)
.args(&[...]
.stdout(Stdio::piped())
.spawn()
.expected("...)
Thanks for your help!