Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveSource ¶
ResolveSource resolves a module source to a local directory. Sources starting with "." or "/" are treated as local paths. Other sources are treated as git URLs and cloned to a temp directory.
Types ¶
type Module ¶
type Module struct {
// Dir is the directory containing the module's loom.yaml.
Dir string
// Config is the parsed loom.yaml.
Config *config.LoomFile
// Params are the resolved parameters for this module.
Params map[string]string
// Logger is the structured logger.
Logger *slog.Logger
}
Module represents a loaded and resolved loom module.
func (*Module) NewExecutionContext ¶
func (m *Module) NewExecutionContext(targetDir string, opts RunOptions) *action.ExecutionContext
NewExecutionContext creates an ExecutionContext for this module.
type RunOptions ¶ added in v0.1.2
RunOptions holds runtime flags for module execution.