diff --git a/src/main.rs b/src/main.rs index 9129721..6c5ea40 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,14 +35,13 @@ fn main() -> Result<(), std::io::Error> { // Skip task which has CONFIG/task.ignore continue; } - println!("TASK: {:?}", task.name); let mut context = HashMap::new(); context.insert("$i18n_task", task.name.as_str()); log::debug("found_task", Some(&context)); // Maybe the task has a source we should clone? if let Some(repo) = &task.repo { - context.insert("$i18n_source", &repo.source); + context.insert("$source", &repo.source); let source_dir = format!("{}/.{}", base_dir, &task.name); if task.cloned == false { log::info("clone", Some(&context)); diff --git a/src/task.rs b/src/task.rs index c30f7c1..ee661dc 100644 --- a/src/task.rs +++ b/src/task.rs @@ -82,13 +82,9 @@ impl Task { pub fn checkout(&self) { if let Some(branch) = &self.branch { - println!("requesting branch"); if let Some(repo) = &self.repo { - println!("has repo"); repo.checkout(branch); } - } else { - println!("no ranch requested"); } }