pub fn init(config: &Config, root_path: &String) -> Result<(), Error> {
    match &config.hooks {
        Some(hooks) => {
            hooks
                .into_iter()
                .try_for_each(|hook: &Hook| init_hook(&root_path, &hook))?;
        }
        None => {
            error!("No hooks defined in provide configuration file");
        }
    }

    Ok(())
}
// NOTE: create symlinks for existing files in git_hooks folder
create symlinks for existing files in git_hooks folder
create symlinks for existing files in git_hooks folder
pub fn init(config: &Config, root_path: &String) -> Result<(), Error> {
    match &config.hooks {
        Some(hooks) => {
            hooks
                .into_iter()
                .try_for_each(|hook: &Hook| init_hook(&root_path, &hook))?;
        }
        None => {
            error!("No hooks defined in provide configuration file");
        }
    }
    Ok(())
}
pub fn init ( config : & Config , root_path : & String ) -> Result < ( ) , Error > { match & config . hooks { Some ( hooks ) => { hooks . into_iter ( ) . try_for_each ( | hook : & Hook | init_hook ( & root_path , & hook ) ) ? ; } None => { error ! ( " " ) ; } } Ok ( ( ) ) }
NOTE: create symlinks for existing files in git_hooks folder
NOTE : create symlinks for existing files in git_hooks folder
config
&Config
root_path
&String