Fix some debug messages

This commit is contained in:
southerntofu 2020-11-26 00:21:02 +01:00
parent 6b6f30b80a
commit ae043f5cd2
2 changed files with 1 additions and 6 deletions

View File

@ -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));

View File

@ -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");
}
}