Browse Source

Make more clear

Samuel W. Flint 3 years ago
parent
commit
7ee56afc84
1 changed files with 10 additions and 5 deletions
  1. 10 5
      src/lib/run.rs

+ 10 - 5
src/lib/run.rs

@@ -82,11 +82,16 @@ pub fn run_repository_sync(config: &Config, name: String) {
                     let repo_type = config.repo_types.get(&repository.repo_type);
                     match repo_type {
                         Some(repo_type) => {
-                            run_command_in_directory(location.to_string(), Template::new(&repo_type.pre_inward).render(&options));
-                            run_command_in_directory(location.to_string(), Template::new(&repo_type.inward).render(&options));
-                            run_command_in_directory(location.to_string(), Template::new(&repo_type.post_inward).render(&options));
-                            run_command_in_directory(location.to_string(), Template::new(&repo_type.outward).render(&options));
-                            run_command_in_directory(location.to_string(), Template::new(&repo_type.post_outward).render(&options));
+                            run_command_in_directory(location.to_string(),
+                                                     Template::new(&repo_type.pre_inward).render(&options));
+                            run_command_in_directory(location.to_string(),
+                                                     Template::new(&repo_type.inward).render(&options));
+                            run_command_in_directory(location.to_string(),
+                                                     Template::new(&repo_type.post_inward).render(&options));
+                            run_command_in_directory(location.to_string(),
+                                                     Template::new(&repo_type.outward).render(&options));
+                            run_command_in_directory(location.to_string(),
+                                                     Template::new(&repo_type.post_outward).render(&options));
                         },
                         None => panic!("No known repository type named \"{}\".", &repository.repo_type)
                     }