Function init

Source
pub fn init<F, G, H>(
    run_command: F,
    write_file: G,
    file_exists: H,
    hook_file_skip_list: Vec<&str>,
) -> Result<(), String>
where F: Fn(&str, Option<&str>, bool, Option<&HashMap<String, String>>) -> Result<Option<String>, Option<String>>, G: Fn(&str, &str, bool) -> Result<(), String>, H: Fn(&str) -> Result<bool, ()>,