//! Git hooks adapter lowering.

use aqc_git_hooks_engine::GitHooksRequirements;
use shackles_core::{EngineRequirementOutput, Provenance, boxed_engine_requirement};

use crate::types::GitHooksAdapterRequirement;

#[must_use]
pub fn lower_git_hooks_requirement(
    provenance: Provenance,
    requirement: GitHooksAdapterRequirement,
) -> EngineRequirementOutput {
    vec![boxed_engine_requirement(
        provenance,
        GitHooksRequirements {
            files: requirement.files,
        },
    )]
}
