use crate::jobfile;
pub fn cmd_infostdin() -> Result<(), anyhow::Error> {
let stdin_base = std::io::stdin();
let mut stdin_fd = stdin_base.lock();
let meta = jobfile::read_jobfile_header(&mut stdin_fd)?;
meta.render(None, None, &mut std::io::stdout())?;
Ok(())
}
pub fn cmd_payloadstdin() -> Result<(), anyhow::Error> {
let stdin_base = std::io::stdin();
let mut stdin_fd = stdin_base.lock();
jobfile::read_jobfile_header(&mut stdin_fd)?;
std::io::copy(&mut stdin_fd, &mut std::io::stdout())?;
Ok(())
}