fn for_dir(base_dir: &Path) -> Fallible<Option<Self>> {
        match Project::find_dir(&base_dir) {
            Some(project_dir) => {
                let path = project_dir.join(".volta").join("hooks.json");
                let hooks_config = Self::from_file(&path)?;

                if hooks_config.is_some() {
                    debug!("Found project hooks in '{}'", path.display());
                }

                Ok(hooks_config)
            }
            None => Ok(None),
        }
    }
/// Returns the per-project hooks for the specified directory.  If the
/// specified directory is not itself a project, its ancestors will be
/// searched.
Returns the per-project hooks for the specified directory.  If the
specified directory is not itself a project, its ancestors will be
searched.
Returns the per - project hooks for the specified directory . If the specified directory is not itself a project its ancestors will be searched .
fn for_dir(base_dir: &Path) -> Fallible<Option<Self>> {
        match Project::find_dir(&base_dir) {
            Some(project_dir) => {
                let path = project_dir.join(".volta").join("hooks.json");
                let hooks_config = Self::from_file(&path)?;
                if hooks_config.is_some() {
                    debug!("Found project hooks in '{}'", path.display());
                }
                Ok(hooks_config)
            }
            None => Ok(None),
        }
    }
fn for_dir ( base_dir : & Path ) -> Fallible < Option < Self > > { match Project :: find_dir ( & base_dir ) { Some ( project_dir ) => { let path = project_dir . join ( " " ) . join ( " " ) ; let hooks_config = Self :: from_file ( & path ) ? ; if hooks_config . is_some ( ) { debug ! ( " " path display ( ) ) ; } Ok ( hooks_config ) } None => Ok ( None ) , } }
Returns the per-project hooks for the specified directory.
Returns the per - project hooks for the specified directory .
base_dir
&Path
base_dir
&Path