Skip to main content

Module contract_walk

Module contract_walk 

Source
Expand description

Shared recursive contract directory walker.

Multiple pv subcommands need to load every YAML contract under a directory tree (including subdirectories like contracts/aprender/, contracts/trueno/, contracts/patterns/). This module provides the canonical walker so commands agree on what counts as a contract and which sidecar files to skip.

Functions§

collect_contracts
Walk dir recursively and collect every parseable .yaml contract into out as (stem, contract) pairs.