fn current() -> Fallible<Self> {
        let maybe_project_config = Self::for_current_dir()?;
        let maybe_default_config = Self::for_default()?;

        Ok(match (maybe_project_config, maybe_default_config) {
            (Some(project_config), Some(default_config)) => {
                debug!("Merging default and project hooks");
                Self::merge(default_config, project_config)
            }
            (Some(project_config), None) => project_config,
            (None, Some(default_config)) => default_config,
            (None, None) => {
                debug!("No custom hooks found");
                Self {
                    node: None,
                    yarn: None,
                    package: None,
                    events: None,
                }
            }
        })
    }
/// Returns the current hooks, which are a merge between the user hooks and
/// the project hooks (if any).
Returns the current hooks, which are a merge between the user hooks and
the project hooks (if any).
Returns the current hooks which are a merge between the user hooks and the project hooks ( if any ) .
fn current() -> Fallible<Self> {
        let maybe_project_config = Self::for_current_dir()?;
        let maybe_default_config = Self::for_default()?;
        Ok(match (maybe_project_config, maybe_default_config) {
            (Some(project_config), Some(default_config)) => {
                debug!("Merging default and project hooks");
                Self::merge(default_config, project_config)
            }
            (Some(project_config), None) => project_config,
            (None, Some(default_config)) => default_config,
            (None, None) => {
                debug!("No custom hooks found");
                Self {
                    node: None,
                    yarn: None,
                    package: None,
                    events: None,
                }
            }
        })
    }
fn current ( ) -> Fallible < Self > { let maybe_project_config = Self :: for_current_dir ( ) ? ; let maybe_default_config = Self :: for_default ( ) ? ; Ok ( match ( maybe_project_config , maybe_default_config ) { ( Some ( project_config ) , Some ( default_config ) ) => { debug ! ( " " ) ; Self :: merge ( default_config , project_config ) } ( Some ( project_config ) , None ) => project_config , ( None , Some ( default_config ) ) => default_config , ( None , None ) => { debug ! ( " " ) ; Self { node : None , yarn : None , package : None , events : None , } } } ) }
Returns the current hooks, which are a merge between the user hooks and
the project hooks (if any).
Returns the current hooks which are a merge between the user hooks and the project hooks ( if any ) .