(from: S, to: P)
| 66 | } |
| 67 | |
| 68 | pub fn copy_non_template_files<S, P>(from: S, to: P) -> Result<(), CommandError> |
| 69 | where |
| 70 | S: AsRef<Path>, |
| 71 | P: AsRef<Path>, |
| 72 | { |
| 73 | match crate::fs::copy_files(from.as_ref(), to.as_ref(), true) { |
| 74 | Err(err) => Err(CommandError::new( |
| 75 | "Error copying template files.".to_string(), |
| 76 | Some(err.to_string()), |
| 77 | None, |
| 78 | )), |
| 79 | Ok(x) => Ok(x), |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | pub fn generate_j2_template_files<P>(root_dir: P, context: &Context) -> Result<Vec<RenderedTemplate>, TeraError> |
| 84 | where |
no test coverage detected