pub fn output_as<P: AsRef<Path>>(path: &P, format: &str) -> Result<Output, Error>