feat: implement loadYAML in module loader

This commit is contained in:
Celeste Hickenlooper
2026-01-03 02:53:04 -08:00
parent d7c4387413
commit 0a65acdfff

View File

@@ -115,9 +115,14 @@ func (l *Loader) loadDir(dir string, userDefined bool) error {
}
// loadYAML loads a YAML module definition.
// Implementation will be provided in yaml.go.
func (l *Loader) loadYAML(path string) error {
// Will be implemented in yaml.go
def, err := ParseYAMLModule(path)
if err != nil {
return err
}
module := newYAMLModuleWrapper(def, path)
Register(module)
return nil
}