Skip to main content

Module loader

Module loader 

Source
Expand description

Loader module: Read and parse .unit.spec files from the filesystem

Functions:

  • Load single .unit.spec file
  • Load directory recursively
  • UTF-8 validation before YAML parsing
  • Error tracking with file paths

Structs§

DirectoryLoadReport
Result of a collect-all directory load.

Functions§

is_unit_spec
Check if a path is a .unit.spec file
load_directory
Load all .unit.spec files from a directory recursively
load_directory_report
Load all .unit.spec files from a directory recursively, collecting traversal warnings and continuing past symlink cycles.
load_file
Load a single .unit.spec file