-use std::io::Result;
-use std::path::PathBuf;
-use crate::template::TemplateContext;
+use crate::template::Context;
use crate::utils::recursively_copy;
+use std::io::Result;
+use std::path::Path;
-pub fn generate(source: &PathBuf, _: &PathBuf, target: &PathBuf, _: &TemplateContext) -> Result<()> {
+pub fn generate(source: &Path, _: &Path, target: &Path, _: &Context) -> Result<()> {
if source.exists() {
- return recursively_copy(source, target)
+ return recursively_copy(source, target);
}
Ok(())
}