use bstr::ByteSlice;
use cloud_terrastodon_command::CommandBuilder;
use cloud_terrastodon_command::CommandKind;
#[tokio::test]
async fn send_stdin_echo() -> eyre::Result<()> {
let mut cmd = CommandBuilder::new(CommandKind::Pwsh);
cmd.args(["-NoProfile", "-Command", "-" ]); cmd.send_stdin("echo 'hello stdin'");
let output = cmd.run_raw().await?;
assert_eq!(output.stdout.trim(), "hello stdin".as_bytes());
Ok(())
}