pub fn write_files( files: &[GeneratedFile], output_dir: &Path, single_file: bool, dry_run: bool, ) -> Result<()>