pub fn stdout_write_all_and_flush(output: String) -> Result<()>